aboutsummaryrefslogtreecommitdiff
path: root/net.Linux/ifplugd.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-22 13:28:14 +0000
committerRoy Marples <roy@marples.name>2007-11-22 13:28:14 +0000
commit09c5e5d415d5813f49d871dc0712212a92a695ed (patch)
treede87f98c3bb02e8cd436ddd8bcf99a2a4d51a65d /net.Linux/ifplugd.sh
parente31e930825b2e1d122460b42d1a52d1aa8c13f5f (diff)
Use yesno for more robustness
Diffstat (limited to 'net.Linux/ifplugd.sh')
-rw-r--r--net.Linux/ifplugd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/net.Linux/ifplugd.sh b/net.Linux/ifplugd.sh
index 23788a73..3c90f860 100644
--- a/net.Linux/ifplugd.sh
+++ b/net.Linux/ifplugd.sh
@@ -36,7 +36,7 @@ ifplugd_pre_start() {
local pidfile="/var/run/ifplugd.${IFACE}.pid" timeout= args=
# 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
@@ -99,7 +99,7 @@ ifplugd_pre_start() {
}
ifplugd_stop() {
- ${IN_BACKGROUND} && return 0
+ yesno ${IN_BACKGROUND} && return 0
local pidfile="/var/run/ifplugd.${IFACE}.pid"
[ ! -e "${pidfile}" ] && return 0