aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysconfig/network-scripts/network-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index a7540c8f..64a4beaf 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -448,8 +448,8 @@ add_default_route ()
is_wireless_device ()
{
- [ -x /sbin/iwconfig ] || return 1
- LC_ALL=C iwconfig $1 2>&1 | grep -q "no wireless extensions" || return 0
+ [ -x /usr/sbin/iw ] || return 1
+ LC_ALL=C /usr/sbin/iw dev $1 info > /dev/null 2>&1 || return 0
return 1
}