updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / e3acpi / eee.rc
blob5464d26351a8b2594f6d2926234aaf724f8fd03c
1 #!/bin/bash
3 DESC="Eee PC 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