aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysconfig/network-scripts/network-functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 68c17ccd..605c19db 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -88,7 +88,8 @@ is_available ()
return 2
fi
modprobe $1 > /dev/null 2>&1 || return 1
- return 0
+ LC_ALL= LANG= ip -o link | grep -q $1
+ return $?
}
need_hostname ()