aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-06-25 17:56:16 +0000
committerBill Nottingham <notting@redhat.com>2001-06-25 17:56:16 +0000
commit5732dd0388bccb15948406340abe8fc983dde814 (patch)
treebac34c7606b1b31897fc6b0d9835dd6bb3b1a68e /sysconfig/network-scripts
parentb5b072cd53e8d61034be0ffbbda9aec3b4a14105 (diff)
downloadinitscripts-5732dd0388bccb15948406340abe8fc983dde814.tar
initscripts-5732dd0388bccb15948406340abe8fc983dde814.tar.gz
initscripts-5732dd0388bccb15948406340abe8fc983dde814.tar.bz2
initscripts-5732dd0388bccb15948406340abe8fc983dde814.tar.xz
initscripts-5732dd0388bccb15948406340abe8fc983dde814.zip
fix is_wireless, againr5-93
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r--sysconfig/network-scripts/network-functions6
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
}