Forked from tyilo/yosemite-bluetooth-fix.sh
Last active
August 29, 2015 14:15
Revisions
-
jagtesh revised this gist
Feb 19, 2015 . 1 changed file with 3 additions and 13 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,21 +1,11 @@ #!/bin/bash # Install sleepwatcher sudo cp /usr/local/Cellar/sleepwatcher/2.2/de.bernhard-baehr.sleepwatcher-20compatibility.plist /Library/LaunchAgents/ sudo cp /usr/local/Cellar/sleepwatcher/2.2/etc/sleepwatcher/rc.* /etc/c # Add bluetooth script to /etc/rc.wakeup (the script requires root) sudo tee -a /etc/rc.wakeup <<EOF kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport && sleep 3 && kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport EOF # Load the agent to start sleepwatcher -
tyilo renamed this gist
Dec 13, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
tyilo revised this gist
Dec 10, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,6 +9,8 @@ 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 cd .. rm -r sleepwatcher_2.2* # Add bluetooth script to /etc/rc.wakeup (the script requires root) sudo tee -a /etc/rc.wakeup <<EOF -
tyilo revised this gist
Dec 10, 2014 . 2 changed files with 20 additions and 12 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ #!/bin/bash # Install sleepwatcher 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 # Add bluetooth script to /etc/rc.wakeup (the script requires root) sudo tee -a /etc/rc.wakeup <<EOF kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport EOF # Load the agent to start sleepwatcher sudo launchctl load /Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility.plist 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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +0,0 @@ -
tyilo created this gist
Dec 10, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ 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