updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / asus_oled-clock-svn / asusoled-clockd
blob62de86b45edf2d3fdc03ec47ecfca8ca81867d74
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 case "$1" in
7 start)
8 stat_busy "Starting Asusoled Daemon"
9 /usr/bin/asusoled -e &> /dev/null
10 /usr/bin/asusoled-clock &
11 add_daemon asusoled-clockd
12 stat_done
14 stop)
15 stat_busy "Stopping asusoled Daemon"
16 /usr/bin/killall asusoled-clock
17 /usr/bin/asusoled -d
18 rm_daemon asusoled-clockd
19 stat_done
21 restart)
22 $0 stop
23 sleep 1
24 $0 start
27 echo "usage: $0 {start|stop|restart}"
28 esac
29 exit 0