summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2013-05-09 17:53:18 +0000
committerOlivier Blin <blino@mageia.org>2013-05-09 17:53:18 +0000
commit85a02147a62deeaa1b8af0b3a8346f633ec94ce0 (patch)
treed24116b5f97146b0f7234275f634ccf58831c9b3 /perl-install/detect_devices.pm
parent0ead089893867f0234dee2357f347901fcb2d8bc (diff)
downloaddrakx-85a02147a62deeaa1b8af0b3a8346f633ec94ce0.tar
drakx-85a02147a62deeaa1b8af0b3a8346f633ec94ce0.tar.gz
drakx-85a02147a62deeaa1b8af0b3a8346f633ec94ce0.tar.bz2
drakx-85a02147a62deeaa1b8af0b3a8346f633ec94ce0.tar.xz
drakx-85a02147a62deeaa1b8af0b3a8346f633ec94ce0.zip
detect_devices: check for phy80211 sysfs directory as well to detect wireless devices
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 08d344fac..6f70c92d2 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -703,7 +703,9 @@ sub is_wireless_interface {
#- wlan-ng (prism2_*) need some special tweaks to support it
#- use sysfs as fallback to detect wireless interfaces,
#- i.e interfaces for which get_wireless_stats() is available
- c::isNetDeviceWirelessAware($interface) || -e "/sys/class/net/$interface/wireless";
+ c::isNetDeviceWirelessAware($interface)
+ || -e "/sys/class/net/$interface/wireless"
+ || -e "/sys/class/net/$interface/phy80211";
}
sub get_all_net_devices() {