From 20f612080c4f392abd622eab0afcd5ff5cea05f5 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 27 Dec 2011 17:59:39 -0600 Subject: [PATCH] net: use yesno to test up_before_preup --- init.d/net.lo.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.d/net.lo.in b/init.d/net.lo.in index 02d11a82..f8ec02cf 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -504,7 +504,7 @@ start() # available in preup and afterwards incase the user inadvertently # brings it down if [ "$(command -v preup)" = "preup" ]; then - [ "${_up_before_preup}" = "no" ] || _up 2>/dev/null + yesno "${_up_before_preup:-yes}" && _up 2>/dev/null ebegin "Running preup" eindent preup || return 1