From 0234605bf48da701295efc421a3bf4cf95dae347 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 4 Jul 2007 14:21:24 +0000 Subject: Up the interface after preup incase preup brings it down --- sh/net.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sh') diff --git a/sh/net.sh b/sh/net.sh index 38df7db2..039b586b 100755 --- a/sh/net.sh +++ b/sh/net.sh @@ -382,15 +382,19 @@ start() { _load_modules true 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 + _up 2>/dev/null ebegin "Running preup" eindent preup || return 1 eoutdent fi + _up 2>/dev/null + for module in ${MODULES} ; do if type "${module}_pre_start" >/dev/null 2>/dev/null ; then if ! ${module}_pre_start ; then -- cgit v1.2.3