From 55fd940cab529e1698fd2c836e3d91159f516a9c Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Thu, 6 Aug 2015 10:17:48 +0200 Subject: network-functions: fix wireless detection --- sysconfig/network-scripts/network-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.1