From 09c5e5d415d5813f49d871dc0712212a92a695ed Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 22 Nov 2007 13:28:14 +0000 Subject: Use yesno for more robustness --- net.Linux/netplugd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net.Linux/netplugd.sh') diff --git a/net.Linux/netplugd.sh b/net.Linux/netplugd.sh index 422bbf1b..160c6a60 100644 --- a/net.Linux/netplugd.sh +++ b/net.Linux/netplugd.sh @@ -39,7 +39,7 @@ netplugd_pre_start() { local pidfile="/var/run/netplugd-${IFACE}.pid" timeout= # We don't start netplug if we're being called from the background - ${IN_BACKGROUND} && return 0 + yesno ${IN_BACKGROUND} && return 0 _exists || return 0 @@ -101,7 +101,7 @@ netplugd_pre_start() { } netplugd_stop() { - ${IN_BACKGROUND} && return 0 + yesno ${IN_BACKGROUND} && return 0 local pidfile="/var/run/netplugd-${IFACE}.pid" [ ! -e "${pidfile}" ] && return 0 -- cgit v1.2.3