diff options
author | Adel Gadllah <adel.gadllah@gmail.com> | 2009-12-28 15:41:30 +0100 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-01-04 15:14:37 -0500 |
commit | af401fb40f6dd5139e8468dfe1bd3dafe40e8e93 (patch) | |
tree | 89b17920fa38d093e7cec3601a6c1abc9c7afaf0 | |
parent | 8d76e3123616c6be1152198659641a838d8245d0 (diff) | |
download | initscripts-af401fb40f6dd5139e8468dfe1bd3dafe40e8e93.tar initscripts-af401fb40f6dd5139e8468dfe1bd3dafe40e8e93.tar.gz initscripts-af401fb40f6dd5139e8468dfe1bd3dafe40e8e93.tar.bz2 initscripts-af401fb40f6dd5139e8468dfe1bd3dafe40e8e93.tar.xz initscripts-af401fb40f6dd5139e8468dfe1bd3dafe40e8e93.zip |
Use sysfs rather than iwconfig for wireless check
-rw-r--r-- | sysconfig/network-scripts/network-functions | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 23a1a574..082382a7 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -334,9 +334,7 @@ add_default_route () is_wireless_device () { - [ -x /sbin/iwconfig ] || return 1 - LC_ALL=C iwconfig $1 2>&1 | grep -q "no wireless extensions" || return 0 - return 1 + [ -d "/sys/class/net/$1/wireless" ] } install_bonding_driver () |