1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-06 22:04:19 +01:00
Files
wicd/in/init=gentoo=wicd.in
Robby Workman 728fa198ce Updated Gentoo's init script from portage.
Thanks to Jeremy Olexa (darkside_).
2009-01-28 20:54:31 -06:00

26 lines
418 B
Plaintext
Executable File

#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
opts="start stop restart"
WICD_DAEMON=%SBIN%wicd
WICD_PIDFILE=%PIDFILE%
depend() {
need dbus
}
start() {
ebegin "Starting wicd daemon"
"${WICD_DAEMON}" >/dev/null 2>&1
eend $?
}
stop() {
ebegin "Stopping wicd daemon"
start-stop-daemon --stop --pidfile "${WICD_PIDFILE}"
eend $?
}