aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/network4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 65650447..374cb46c 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -60,7 +60,9 @@ case "$1" in
for i in $interfaces; do
if egrep -L "^ONBOOT=\"?[Nn][Oo]\"?" ifcfg-$i >/dev/null 2>&1 && [ "${i##eth}" != "$i" ]; then
# Probe module to preserve interface ordering
- /sbin/ifconfig $i >/dev/null 2>&1
+ if [ -n "`modprobe -vn $i | grep -v Note:`" ]; then
+ /sbin/ifconfig $i >/dev/null 2>&1
+ fi
else
# If we're in confirmation mode, get user confirmation
[ -n "$CONFIRM" ] &&