aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rw-r--r--sysconfig/network-scripts/network-functions4
1 files changed, 1 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 23a1a574..082382a7 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -334,9 +334,7 @@ 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
- return 1
+ [ -d "/sys/class/net/$1/wireless" ]
}
install_bonding_driver ()