Created
June 10, 2014 06:24
-
-
Save bianster/4b7cb9805ed5e874a1ce to your computer and use it in GitHub Desktop.
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
| function bt-ctl(){ | |
| case "$1" in | |
| off) | |
| sudo launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist | |
| sudo kextunload -b com.apple.iokit.IOBluetoothSerialManager | |
| sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
| ;; | |
| on) | |
| sudo launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist | |
| sudo kextload -b com.apple.iokit.IOBluetoothSerialManager | |
| sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
| ;; | |
| esac | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment