aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}