aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rwxr-xr-xsh/net.sh5
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 59f03833..47b08822 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
28 Sep 2007; Roy Marples <uberlord@gentoo.org>:
+ net.sh now checks to see if root is net mounted if no predown function
+ exists, #194074.
enums are now fixed to specific values and are in UPPER CASE.
26 Sep 2007; Roy Marples <uberlord@gentoo.org>:
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