diff options
-rw-r--r-- | sysconfig/network-scripts/network-functions | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 0400e69f..0b7f3afd 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -134,11 +134,9 @@ add_default_route () is_wireless_device () { if [ -x /sbin/iwconfig ]; then - iwconfig $1 2>&1 | grep -q -v "no wireless extensions" - return $? - else - return 1 + iwconfig $1 2>&1 | grep -q "no wireless extensions" || return 0 fi + return 1 } |