diff options
author | Bill Nottingham <notting@redhat.com> | 2001-01-21 19:04:42 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-01-21 19:04:42 +0000 |
commit | 19248ae0bedf88a3a519d0a7ab4a52b865cedde3 (patch) | |
tree | 228f6e3208168f6851702023598314b96e7c4f8f /rc.d/init.d/network | |
parent | 39d5a7d5aa992994ba2883f820bae7190ba6400e (diff) | |
download | initscripts-19248ae0bedf88a3a519d0a7ab4a52b865cedde3.tar initscripts-19248ae0bedf88a3a519d0a7ab4a52b865cedde3.tar.gz initscripts-19248ae0bedf88a3a519d0a7ab4a52b865cedde3.tar.bz2 initscripts-19248ae0bedf88a3a519d0a7ab4a52b865cedde3.tar.xz initscripts-19248ae0bedf88a3a519d0a7ab4a52b865cedde3.zip |
only load the module if there is one to load.
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-x | rc.d/init.d/network | 4 |
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" ] && |