aboutsummaryrefslogtreecommitdiff
path: root/init.d/net.lo.in
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-12-27 17:59:39 -0600
committerWilliam Hubbs <williamh@gentoo.org>2011-12-27 17:59:39 -0600
commit20f612080c4f392abd622eab0afcd5ff5cea05f5 (patch)
tree5d295b345c05dc37f097e896397dce285ce04115 /init.d/net.lo.in
parent5615325a8406c5691991381d4e9d760e4f84be58 (diff)
net: use yesno to test up_before_preup
Diffstat (limited to 'init.d/net.lo.in')
-rw-r--r--init.d/net.lo.in2
1 files changed, 1 insertions, 1 deletions
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