aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysconfig/network-scripts/network-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 61a9ee40..02a024a4 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -311,7 +311,7 @@ is_wireless_device ()
install_bonding_driver ()
{
- ethtool -i $1 2>/dev/null | grep -q "driver: bonding" && return 0
+ [ -d "/sys/class/net/$1" ] && return 0
[ ! -f /sys/class/net/bonding_masters ] && ( modprobe bonding || return 1 )
echo "+$1" > /sys/class/net/bonding_masters 2>/dev/null
return 0