updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / eciadsl-usermode / rc.adsl
blob15c9a12ef2776d1388b92854b0fffffbec21fb6e
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 case "$1" in
7 start)
8 stat_busy "Starting adsl"
9 /usr/bin/eciadsl-start
10 if [ $? -gt 0 ]; then
11 stat_fail
12 else
13 stat_done
14 add_daemon adsl
17 stop)
18 stat_busy "Stopping adsl"
19 /usr/bin/eciadsl-stop
20 if [ $? -gt 0 ]; then
21 stat_fail
22 else
23 stat_done
24 rm_daemon adsl
27 restart)
28 $0 stop
29 sleep 1
30 $0 start
33 echo "usage: $0 {start|stop|restart}"
34 esac