summaryrefslogtreecommitdiff
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
parent5615325a8406c5691991381d4e9d760e4f84be58 (diff)
downloadopenrc-20f612080c4f392abd622eab0afcd5ff5cea05f5.tar.gz
openrc-20f612080c4f392abd622eab0afcd5ff5cea05f5.tar.bz2
openrc-20f612080c4f392abd622eab0afcd5ff5cea05f5.tar.xz
net: use yesno to test up_before_preup
-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 02d11a8..f8ec02c 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