net: use yesno to test up_before_preup
This commit is contained in:
parent
5615325a84
commit
20f612080c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user