diff options
author | Bill Nottingham <notting@redhat.com> | 2001-06-25 17:56:16 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-06-25 17:56:16 +0000 |
commit | 5732dd0388bccb15948406340abe8fc983dde814 (patch) | |
tree | bac34c7606b1b31897fc6b0d9835dd6bb3b1a68e | |
parent | b5b072cd53e8d61034be0ffbbda9aec3b4a14105 (diff) | |
download | initscripts-r5-93.tar initscripts-r5-93.tar.gz initscripts-r5-93.tar.bz2 initscripts-r5-93.tar.xz initscripts-r5-93.zip |
fix is_wireless, againr5-93
-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 } |