aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2015-08-06 10:17:48 +0200
committerLukas Nykryn <lnykryn@redhat.com>2015-08-06 10:17:48 +0200
commit55fd940cab529e1698fd2c836e3d91159f516a9c (patch)
tree09619321de83b26b7eab9a7a9e81f1610edd62e9
parent07389ddc2e88f1d391468e1071e0006411b7da22 (diff)
downloadinitscripts-55fd940cab529e1698fd2c836e3d91159f516a9c.tar
initscripts-55fd940cab529e1698fd2c836e3d91159f516a9c.tar.gz
initscripts-55fd940cab529e1698fd2c836e3d91159f516a9c.tar.bz2
initscripts-55fd940cab529e1698fd2c836e3d91159f516a9c.tar.xz
initscripts-55fd940cab529e1698fd2c836e3d91159f516a9c.zip
network-functions: fix wireless detection
-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 3afa9122..8a03134a 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -447,7 +447,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
}