aboutsummaryrefslogtreecommitdiff
path: root/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 /sh
parente31e930825b2e1d122460b42d1a52d1aa8c13f5f (diff)
Use yesno for more robustness
Diffstat (limited to 'sh')
-rwxr-xr-xsh/net.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/net.sh b/sh/net.sh
index 74b3ac80..42e6d018 100755
--- a/sh/net.sh
+++ b/sh/net.sh
@@ -28,7 +28,7 @@ MODULESDIR="${RC_LIBDIR}/net"
MODULESLIST="${RC_SVCDIR}/nettree"
_config_vars="config routes"
-[ -z "${IN_BACKGROUND}" ] && IN_BACKGROUND=false
+[ -z "${IN_BACKGROUND}" ] && IN_BACKGROUND="NO"
description="Configures network interfaces."
@@ -644,7 +644,7 @@ stop() {
fi
done
- [ "${IN_BACKGROUND}" != "true" ] && \
+ ! yesno ${IN_BACKGROUND} && \
[ "${IFACE}" != "lo" -a "${IFACE}" != "lo0" ] && \
_down 2>/dev/null