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 --- sh/net.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sh') 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 -- cgit v1.2.3