diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2015-08-06 10:17:48 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2015-08-07 15:05:25 +0200 |
commit | ce7f4c18a2b0f9552b2420e98bd4da6763bc468a (patch) | |
tree | 0ea1aecc4e46c37840ca3275958d805e967b0535 /sysconfig | |
parent | 7645e6bf8ee0f6cf1c46e2c64cd70072b2204ae4 (diff) | |
download | initscripts-ce7f4c18a2b0f9552b2420e98bd4da6763bc468a.tar initscripts-ce7f4c18a2b0f9552b2420e98bd4da6763bc468a.tar.gz initscripts-ce7f4c18a2b0f9552b2420e98bd4da6763bc468a.tar.bz2 initscripts-ce7f4c18a2b0f9552b2420e98bd4da6763bc468a.tar.xz initscripts-ce7f4c18a2b0f9552b2420e98bd4da6763bc468a.zip |
network-functions: fix wireless detection
Diffstat (limited to 'sysconfig')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 64a4beaf..8fbfbab2 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -449,7 +449,7 @@ add_default_route () is_wireless_device () { [ -x /usr/sbin/iw ] || return 1 - LC_ALL=C /usr/sbin/iw dev $1 info > /dev/null 2>&1 || return 0 + LC_ALL=C /usr/sbin/iw dev $1 info > /dev/null 2>&1 && return 0 return 1 } |