Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (18 sloc) 0.557 kB
#!/bin/bash -xe
basedir=`dirname $0`
mydir=$( cd $basedir ; pwd )
if [ "$1" = "install" ] ; then
sed -e "s,%WOMPDIR%,$mydir,g" < ${basedir}/nu.dll.womp.plist.in > nu.dll.womp.plist
sudo cp nu.dll.womp.plist /Library/LaunchDaemons/
sudo chown root:wheel /Library/LaunchDaemons/nu.dll.womp.plist
sudo launchctl load /Library/LaunchDaemons/nu.dll.womp.plist
exit 0
fi
hour=`date +%H`
if [ "$hour" -ge 22 -o "$hour" -lt 8 ] ; then
pmset -a womp 0
logger -t "$0" "WOMP off"
else
pmset -a womp 1
logger -t "$0" "WOMP on"
fi
Jump to Line
Something went wrong with that request. Please try again.