aboutsummaryrefslogtreecommitdiff
path: root/sh/net.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-11 17:41:19 +0000
committerRoy Marples <roy@marples.name>2008-01-11 17:41:19 +0000
commit8ef2bf78f74d170104e137554882ecabcaa77609 (patch)
tree5ea44f673d544b408233f1ada61242e597ec32c0 /sh/net.sh
parented144d4252c752e0ef64a42acacc2d07b3bbcc76 (diff)
Don't print an extra eend on failure.
Diffstat (limited to 'sh/net.sh')
-rwxr-xr-xsh/net.sh15
1 files changed, 3 insertions, 12 deletions
diff --git a/sh/net.sh b/sh/net.sh
index e42c086e..f462afdb 100755
--- a/sh/net.sh
+++ b/sh/net.sh
@@ -476,10 +476,7 @@ start()
for module in ${MODULES}; do
if type "${module}_pre_start" >/dev/null 2>&1; then
- if ! ${module}_pre_start; then
- eend 1
- exit 1
- fi
+ ${module}_pre_start || exit $?
fi
done
@@ -606,10 +603,7 @@ ${routes}"
for module in ${MODULES}; do
if type "${module}_post_start" >/dev/null 2>&1; then
- if ! ${module}_post_start; then
- eend 1
- exit 1
- fi
+ ${module}_post_start || exit $?
fi
done
@@ -650,10 +644,7 @@ stop()
for module in ${MODULES}; do
if type "${module}_pre_stop" >/dev/null 2>&1; then
- if ! ${module}_pre_stop; then
- eend 1
- exit 1
- fi
+ ${module}_pre_stop || exit $?
fi
done