updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / acerhk / acerhk.rc
blobb4679cfbe269838701451e7c66eacfb4bef8ae4e
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 case "$1" in
7 start)
8 stat_busy "Starting Acer Hotkey Wireless LED"
9 if [ ! -f /proc/driver/acerhk/wirelessled ]; then
10 stat_fail
11 else
12 echo 1 > /proc/driver/acerhk/wirelessled
13 stat_done
16 stop)
17 stat_busy "Stopping Acer Hotkey Wireless LED"
18 if [ ! -f /proc/driver/acerhk/wirelessled ]; then
19 stat_fail
20 else
21 echo 0 > /proc/driver/acerhk/wirelessled
22 stat_done
25 restart)
26 $0 stop
27 $0 start
30 echo "usage: $0 {start|stop|restart}"
32 esac