aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValdis Kletnieks <valdis.kletnieks@vt.edu>2014-12-10 10:47:07 +0100
committerLukas Nykryn <lnykryn@redhat.com>2014-12-10 10:47:07 +0100
commite906dada40477589daa3c2aaeb994a08f740b89e (patch)
treebb0ed96472218e7cd2117d4c425352e716785afd
parent30ecd15eb772de10f9c2f94cc9bad4eac5439d24 (diff)
downloadinitscripts-e906dada40477589daa3c2aaeb994a08f740b89e.tar
initscripts-e906dada40477589daa3c2aaeb994a08f740b89e.tar.gz
initscripts-e906dada40477589daa3c2aaeb994a08f740b89e.tar.bz2
initscripts-e906dada40477589daa3c2aaeb994a08f740b89e.tar.xz
initscripts-e906dada40477589daa3c2aaeb994a08f740b89e.zip
network-functions: reeplace iwconfig with iw
-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 e6273bb6..33498cce 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
}