net: use yesno to test up_before_preup

This commit is contained in:
William Hubbs 2011-12-27 17:59:39 -06:00
parent 5615325a84
commit 20f612080c

View File

@ -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