diff options
| author | Bill Nottingham <notting@redhat.com> | 2012-11-12 16:35:23 -0500 |
|---|---|---|
| committer | Bill Nottingham <notting@redhat.com> | 2012-11-15 16:55:42 -0500 |
| commit | 837c9ac490a288cf397fc117c21f367d6fe71567 (patch) | |
| tree | 023a1dbc920d7b834c2496207b6acd79cd8897bf /sysconfig/network-scripts | |
| parent | 725fed444994d01ecbfed449e547f84f4b9725ac (diff) | |
| download | initscripts-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-functions | 4 |
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 () |
