mirror of
https://github.com/gryf/wicd.git
synced 2026-03-17 15:23:32 +01:00
updated Gentoo init script
This commit is contained in:
@@ -9,17 +9,31 @@ WICD_PIDFILE=%PIDFILE%
|
|||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need dbus
|
need dbus
|
||||||
|
after hald
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting wicd daemon"
|
ebegin "Starting wicd daemon"
|
||||||
|
# fix Gentoo bug 296197
|
||||||
|
sed -i 's/^\[\]$//' /etc/wicd/wired-settings.conf
|
||||||
"${WICD_DAEMON}" >/dev/null 2>&1
|
"${WICD_DAEMON}" >/dev/null 2>&1
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
|
ebegin "Stopping wicd daemon and closing connections"
|
||||||
|
# can't use ssd because it needs the -k option
|
||||||
|
"${WICD_DAEMON}" -k >/dev/null 2>&1
|
||||||
|
eend $?
|
||||||
|
}
|
||||||
|
|
||||||
|
force_kill() {
|
||||||
ebegin "Stopping wicd daemon"
|
ebegin "Stopping wicd daemon"
|
||||||
start-stop-daemon --stop --pidfile "${WICD_PIDFILE}"
|
start-stop-daemon --stop --pidfile "${WICD_PIDFILE}"
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
restart() {
|
||||||
|
force_kill
|
||||||
|
start
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user