Created
January 14, 2015 13:27
-
-
Save Temikus/a885647a61829c9b1765 to your computer and use it in GitHub Desktop.
Mac break bluetooth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# The following commands effectively break bluetooth on a mac. Menu is stuck in an "off" state that cannot be toggled back. | |
# Can be used when bluetooth needs to be disabled for security reasons. | |
echo "Powering bluetooth off" | |
sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist "ControllerPowerState" 0 | |
echo "Disabling services" | |
sudo /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.blued.plist' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment