summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-07-04 14:21:24 +0000
committerRoy Marples <roy@marples.name>2007-07-04 14:21:24 +0000
commit0234605bf48da701295efc421a3bf4cf95dae347 (patch)
tree608f31a40e9a9f8865c307f57644ad7ab208ece8 /sh
parent9c7bbdd7748109e8043e061e95a794dc15e8e41c (diff)
downloadopenrc-0234605bf48da701295efc421a3bf4cf95dae347.tar.gz
openrc-0234605bf48da701295efc421a3bf4cf95dae347.tar.bz2
openrc-0234605bf48da701295efc421a3bf4cf95dae347.tar.xz
Up the interface after preup incase preup brings it down
Diffstat (limited to 'sh')
-rwxr-xr-xsh/net.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/sh/net.sh b/sh/net.sh
index 38df7db..039b586 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