Created
October 11, 2012 03:49
-
-
Save midore/3870046 to your computer and use it in GitHub Desktop.
disable-bluetooth
This file contains 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 bluetooth | |
# OS X 10.8.2 | |
# 2012-10-08 | |
home=$HOME | |
bk=$home/backup-bluetooth-extentions | |
mkdir $bk | |
# sudo reboot with Shift Key # Safty Boot | |
# Login as Admin usert. | |
#--------------------------------------------------------------------- | |
# Local Backup OFF | |
#--------------------------------------------------------------------- | |
# sudo tmutil disable | |
# sudo tmutil disablelocal | |
#--------------------------------------------------------------------- | |
# Agnet | |
#--------------------------------------------------------------------- | |
# bluetooth | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.bluetoothUIServer.plist | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.bluetoothAudioAgent.plist | |
#--------------------------------------------------------------------- | |
# Daemon | |
#--------------------------------------------------------------------- | |
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 | |
#--------------------------------------------------------------------- | |
# Extentions | |
#--------------------------------------------------------------------- | |
# Driver | |
sudo mv /System/Library/Extensions/AppleBluetoothMultitouch.kext $bk | |
sudo mv /System/Library/Extensions/IOBluetoothFamily.kext $bk | |
sudo mv /System/Library/Extensions/IOBluetoothHIDDriver.kext $bk | |
# Bluetooth Mouns & Keyboard | |
sudo mv /System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoothHIDKeyboard.kext $bk | |
sudo mv /System/Library/Extensions/AppleHIDMouse.kext/Contents/PlugIns/AppleBluetoothHIDMouse.kext $bk | |
#--------------------------------------------------------------------- | |
# touch | |
sudo touch /System/Library/Extensions | |
echo 'Shut Down & Restart' | |
This file contains 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 | |
# Blued | |
# sudo chmod 640 /usr/sbin/blued | |
# sudo chmod 640 /usr/sbin/bnepd | |
# Netbios | |
# sudo chmod 640 /usr/sbin/netbiosd | |
# Samba | |
# sudo chmod 640 /usr/sbin/smbd | |
# sudo chmod 640 /usr/sbin/cupsaddsmb | |
# sudo chmod 640 /usr/bin/smbutil | |
# sudo chmod 640 /usr/bin/smbencrypt | |
# sudo chmod 640 /sbin/mount_smbfs | |
# FTP | |
# sudo chmod 400 /usr/bin/ftp | |
# sudo chmod 400 /usr/bin/sftp | |
# sudo chmod 400 /usr/bin/tftp | |
# Apache | |
# sudo chmod 400 /usr/sbin/httpd | |
# sudo chmod 400 /usr/sbin/apachectl | |
# JavaApplet | |
# sudo chmod 700 /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin | |
# sudo rm /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin | |
# AppleEvent | |
# sudo chmod 700 /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Versions/A/Support/AEServer | |
# AirDrop | |
# sudo chmod 640 /System/Library/CoreServices/NetworkBrowserAgent | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment