Up the interface after preup incase preup brings it down
This commit is contained in:
parent
9c7bbdd774
commit
0234605bf4
@ -382,15 +382,19 @@ start() {
|
|||||||
_load_modules true
|
_load_modules true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_up 2>/dev/null
|
# We up the iface twice if we have a preup to ensure it's up if
|
||||||
|
# available in preup and afterwards incase the user inadvertently
|
||||||
|
# brings it down
|
||||||
if type preup >/dev/null 2>/dev/null ; then
|
if type preup >/dev/null 2>/dev/null ; then
|
||||||
|
_up 2>/dev/null
|
||||||
ebegin "Running preup"
|
ebegin "Running preup"
|
||||||
eindent
|
eindent
|
||||||
preup || return 1
|
preup || return 1
|
||||||
eoutdent
|
eoutdent
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
_up 2>/dev/null
|
||||||
|
|
||||||
for module in ${MODULES} ; do
|
for module in ${MODULES} ; do
|
||||||
if type "${module}_pre_start" >/dev/null 2>/dev/null ; then
|
if type "${module}_pre_start" >/dev/null 2>/dev/null ; then
|
||||||
if ! ${module}_pre_start ; then
|
if ! ${module}_pre_start ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user