2011-07-10 13:47:15 +10:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# /etc/rc.d/wicd: start/stop wicd daemon
|
|
|
|
#
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
start)
|
|
|
|
/usr/sbin/wicd
|
|
|
|
;;
|
|
|
|
stop)
|
2013-06-30 22:25:02 +10:00
|
|
|
kill $(cat /var/run/wicd/wicd.pid)
|
2011-07-10 13:47:15 +10:00
|
|
|
;;
|
|
|
|
restart)
|
|
|
|
$0 stop
|
|
|
|
$0 start
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "usage: $0 [start|stop|restart]"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# End of file
|