updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / intel-536ep-utils / intel-536EP.rc.d
blob5c13b9730f426387710c6a3442313fd8a51f1b60
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 case "$1" in
7 start)
8 stat_busy "Loading Intel Modem Driver"
9 hamregistry &
10 if [ $? -gt 0 ]; then
11 stat_fail
12 else
13 add_daemon intel-536EP
14 stat_done
15 fi
17 stop)
18 stat_busy "Stopping Intel Modem Driver"
19 killall -9 hamregistry
20 if [ $? -gt 0 ]; then
21 stat_fail
22 else
23 rm_daemon intel-536EP
24 stat_done
27 restart)
28 $0 stop
29 sleep 1
30 $0 start
33 echo "Usage $0 {start|stop|restart}"
35 esac