aboutsummaryrefslogtreecommitdiff
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
parent6f7f447978025c9d49a0d2a0a5a6a29384ba80c8 (diff)
net.sh now checks to see if root is net mounted if no predown function
exists, #194074.
-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