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
|
# available in preup and afterwards incase the user inadvertently
|
||||||
# brings it down
|
# brings it down
|
||||||
if [ "$(command -v preup)" = "preup" ]; then
|
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"
|
ebegin "Running preup"
|
||||||
eindent
|
eindent
|
||||||
preup || return 1
|
preup || return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user