diff options
author | Bill Nottingham <notting@redhat.com> | 2006-11-06 21:22:36 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-11-06 21:22:36 +0000 |
commit | 4305234be25f3a17ae147d98a2eca93ce4838fdd (patch) | |
tree | aceb92a682757e5f73dcdfa0d66a8f131d65ac71 | |
parent | dc6c857445fddbf35bdfd2f5f8c95634dfdf0531 (diff) | |
download | initscripts-4305234be25f3a17ae147d98a2eca93ce4838fdd.tar initscripts-4305234be25f3a17ae147d98a2eca93ce4838fdd.tar.gz initscripts-4305234be25f3a17ae147d98a2eca93ce4838fdd.tar.bz2 initscripts-4305234be25f3a17ae147d98a2eca93ce4838fdd.tar.xz initscripts-4305234be25f3a17ae147d98a2eca93ce4838fdd.zip |
don't run ethtool if there's no device. Prevents reloading the module
on ifdown called by udev on device unregistration.
-rw-r--r-- | sysconfig/network-scripts/network-functions | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 3fe8b73f..0342e40b 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -398,6 +398,7 @@ install_bonding_driver () is_bonding_device () { + [ ! -d "/sys/class/net/$1" ] && return 1 [ "${TYPE}" = "Bonding" ] && return 0 ethtool -i $1 2>/dev/null | grep -q "driver: bonding" && return 0 return 1 |