aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/network6
1 files changed, 4 insertions, 2 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 8f486277..ffd49236 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -58,7 +58,7 @@ case "$1" in
esac
for i in $interfaces; do
- if egrep -L "ONBOOT=\"?[Nn][Oo]\"?" ifcfg-$i >/dev/null ; then
+ if egrep -L "ONBOOT=\"?[Nn][Oo]\"?" ifcfg-$i | grep -v "^#" >/dev/null ; then
# Probe module to preserve interface ordering
/sbin/ifconfig $i >/dev/null 2>&1
else
@@ -90,7 +90,9 @@ case "$1" in
fi
for i in $interfaces ; do
- action "Shutting down interface $i" ./ifdown $i boot
+ if ifconfig $i | grep -q "UP" >/dev/null 2>&1 ; then
+ action "Shutting down interface $i" ./ifdown $i boot
+ fi
done
case "$IPX" in
yes|true)