aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorValdis Kletnieks <valdis.kletnieks@vt.edu>2014-12-10 10:47:07 +0100
committerLukas Nykryn <lnykryn@redhat.com>2015-07-01 12:51:04 +0200
commit52edc91a51384af88dcb604c0e8d48c7c3475795 (patch)
treee890ee36343006d22cdc6826e201ef04297e312b /sysconfig/network-scripts
parenta9595cc65833b43a950c54494c9a0bb4645503a0 (diff)
downloadinitscripts-52edc91a51384af88dcb604c0e8d48c7c3475795.tar
initscripts-52edc91a51384af88dcb604c0e8d48c7c3475795.tar.gz
initscripts-52edc91a51384af88dcb604c0e8d48c7c3475795.tar.bz2
initscripts-52edc91a51384af88dcb604c0e8d48c7c3475795.tar.xz
initscripts-52edc91a51384af88dcb604c0e8d48c7c3475795.zip
network-functions: reeplace iwconfig with iw
Diffstat (limited to 'sysconfig/network-scripts')
-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
}