aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysconfig/network-scripts/network-functions1
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