Skip to content

Instantly share code, notes, and snippets.

@Temikus
Created January 14, 2015 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Temikus/a885647a61829c9b1765 to your computer and use it in GitHub Desktop.
Save Temikus/a885647a61829c9b1765 to your computer and use it in GitHub Desktop.
Mac break bluetooth
#!/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