aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-11-12 16:35:23 -0500
committerBill Nottingham <notting@redhat.com>2012-11-15 16:55:42 -0500
commit837c9ac490a288cf397fc117c21f367d6fe71567 (patch)
tree023a1dbc920d7b834c2496207b6acd79cd8897bf /sysconfig/network-scripts
parent725fed444994d01ecbfed449e547f84f4b9725ac (diff)
downloadinitscripts-837c9ac490a288cf397fc117c21f367d6fe71567.tar
initscripts-837c9ac490a288cf397fc117c21f367d6fe71567.tar.gz
initscripts-837c9ac490a288cf397fc117c21f367d6fe71567.tar.bz2
initscripts-837c9ac490a288cf397fc117c21f367d6fe71567.tar.xz
initscripts-837c9ac490a288cf397fc117c21f367d6fe71567.zip
Revert "Use sysfs rather than iwconfig for wireless check"
This reverts commit af401fb40f6dd5139e8468dfe1bd3dafe40e8e93. upstream removed sysfs wireless. How nice.
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r--sysconfig/network-scripts/network-functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 7b71f0f3..428d12b8 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -400,7 +400,9 @@ add_default_route ()
is_wireless_device ()
{
- [ -d "/sys/class/net/$1/wireless" ]
+ [ -x /sbin/iwconfig ] || return 1
+ LC_ALL=C iwconfig $1 2>&1 | grep -q "no wireless extensions" || return 0
+ return 1
}
install_bonding_driver ()