aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2015-08-06 10:17:48 +0200
committerLukas Nykryn <lnykryn@redhat.com>2015-08-07 15:05:25 +0200
commitce7f4c18a2b0f9552b2420e98bd4da6763bc468a (patch)
tree0ea1aecc4e46c37840ca3275958d805e967b0535 /sysconfig
parent7645e6bf8ee0f6cf1c46e2c64cd70072b2204ae4 (diff)
downloadinitscripts-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-functions2
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
}