Skip to content

Instantly share code, notes, and snippets.

@jagtesh
Forked from tyilo/yosemite-bluetooth-fix.sh
Last active August 29, 2015 14:15
Show Gist options
  • Save jagtesh/de81fa1c6b45fad0ff8e to your computer and use it in GitHub Desktop.
Save jagtesh/de81fa1c6b45fad0ff8e to your computer and use it in GitHub Desktop.
Updated it for use with brew
cd /tmp
curl -O http://www.bernhard-baehr.de/sleepwatcher_2.2.tgz
tar -zxvf sleepwatcher_2.2.tgz
cd sleepwatcher_2.2
sudo mkdir -p /usr/local/sbin /usr/local/share/man/man8
sudo cp sleepwatcher /usr/local/sbin
sudo cp sleepwatcher.8 /usr/local/share/man/man8
sudo cp config/de.bernhard-baehr.sleepwatcher-20compatibility.plist /Library/LaunchAgents
sudo cp config/rc.* /etc
echo 'kextunload -b
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport; kextload -b
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport' >> /etc/rc.wake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment