aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
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