updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / acpi-eee / eee.rc
bloba8a73a8df5b2e755960c48882d70d3a579f12f96
1 #!/bin/bash
3 DESC="Asus EeePC startup configuration"
5 USER=""
7 if [ "$(whoami)" != "root" ];then
8 echo "You must be root to start/restart/stop services."
9 exit 1
12 . /etc/rc.conf
13 . /etc/rc.d/functions
15 case "$1" in
16 start)
17 stat_busy "Starting $DESC"
18 add_daemon eee
19 rm -f /etc/acpi/power.lock
20 /etc/acpi/powersource.sh > /dev/null
21 stat_done
23 stop)
24 stat_busy "Stopping $DESC"
25 rm_daemon eee
26 rm -f /etc/acpi/power.lock
27 stat_done
29 restart)
30 $0 stop
31 sleep 1
32 $0 start
35 echo "usage: $0 {start|stop|restart}"
36 esac