1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-26 08:22:32 +01:00
Files
wicd/init/arch/wicd
compwiz18 0844386017 Experimental: Apply changes involving setup.py
* Added setup.py from trunk
 * Updated various information files (AUTHORS, README, etc)
 * Update the Wicd icon
 * Move stuff around to match trunk's layout
2008-08-23 20:14:43 +00:00

34 lines
591 B
Bash
Executable File

#!/bin/bash
# borrowed from
# http://repos.archlinux.org/viewvc.cgi/wicd/repos/extra-i686/wicd-daemon?revision=1&view=markup
# and modified for 1.5.0
. /etc/rc.conf
. /etc/rc.d/functions
case "$1" in
start)
stat_busy "Starting wicd Daemon"
killall wicd &> /dev/null
/usr/sbin/wicd-daemon &> /dev/null
add_daemon wicd
stat_done
;;
stop)
stat_busy "Stopping wicd Daemon"
killall wicd &> /dev/null
rm_daemon wicd
stat_done
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0