From 4b0fbe60dd0cfb8f5577c8391a5621981c70ffb6 Mon Sep 17 00:00:00 2001 From: Adam Blackburn Date: Sun, 3 Jan 2010 09:05:58 -1000 Subject: [PATCH] updated Gentoo init script --- in/init=gentoo=wicd.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/in/init=gentoo=wicd.in b/in/init=gentoo=wicd.in index 6f307bc..c346a4d 100755 --- a/in/init=gentoo=wicd.in +++ b/in/init=gentoo=wicd.in @@ -9,17 +9,31 @@ WICD_PIDFILE=%PIDFILE% depend() { need dbus + after hald } start() { ebegin "Starting wicd daemon" + # fix Gentoo bug 296197 + sed -i 's/^\[\]$//' /etc/wicd/wired-settings.conf "${WICD_DAEMON}" >/dev/null 2>&1 eend $? } 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" start-stop-daemon --stop --pidfile "${WICD_PIDFILE}" eend $? } +restart() { + force_kill + start +}