Created
March 3, 2015 10:24
-
-
Save klapec/cf077b029966a2134251 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
#!/bin/bash | |
# Disable OSX Bluetooth | |
# OS X 10.10.3 | |
# 03-03-2015 | |
home=$HOME | |
bk=$home/backup-bluetooth-extentions | |
mkdir $bk | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.bluetoothUIServer.plist | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.bluetoothAudioAgent.plist | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.blued.plist | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.bnepd.plist | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.IOBluetoothUSBDFU.plist | |
sudo mv /System/Library/Extensions/AppleBluetoothMultitouch.kext $bk | |
sudo mv /System/Library/Extensions/IOBluetoothFamily.kext $bk | |
sudo mv /System/Library/Extensions/IOBluetoothHIDDriver.kext $bk | |
sudo mv /System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoothHIDKeyboard.kext $bk | |
sudo mv /System/Library/Extensions/AppleHIDMouse.kext/Contents/PlugIns/AppleBluetoothHIDMouse.kext $bk | |
sudo touch /System/Library/Extensions | |
echo 'Shut Down & Restart' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment