contrib/wicd/wicd.rc
2013-06-30 22:25:02 +10:00

24 lines
246 B
Bash

#!/bin/sh
#
# /etc/rc.d/wicd: start/stop wicd daemon
#
case $1 in
start)
/usr/sbin/wicd
;;
stop)
kill $(cat /var/run/wicd/wicd.pid)
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
exit 1
;;
esac
# End of file