aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-28 12:46:59 +0000
committerRoy Marples <roy@marples.name>2007-09-28 12:46:59 +0000
commitb894cdb7383a35d63f16c59bc31c5c619e64db0d (patch)
treed9ea1891cf1c4ca7577ec9351f85d12be5616723 /sh
parent6f7f447978025c9d49a0d2a0a5a6a29384ba80c8 (diff)
net.sh now checks to see if root is net mounted if no predown function
exists, #194074.
Diffstat (limited to 'sh')
-rwxr-xr-xsh/net.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/sh/net.sh b/sh/net.sh
index 3be6a421..de3164c3 100755
--- a/sh/net.sh
+++ b/sh/net.sh
@@ -554,6 +554,11 @@ stop() {
eindent
predown || return 1
eoutdent
+ else
+ if is_net_fs /; then
+ eerror "root filesystem is network mounted -- can't stop ${IFACE}"
+ return 1
+ fi
fi
for module in ${MODULES} ; do