summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-04-04 15:15:08 +0000
committerOlivier Blin <oblin@mandriva.org>2005-04-04 15:15:08 +0000
commit2ad271d3bbe7c8f709d762428f8d35068e65ff18 (patch)
tree9d70b02604c778529592f900aef6548760be8aed
parentfb10f6b776ae5dfe1792916a1eb0c386fc6f5563 (diff)
downloaddrakx-backup-do-not-use-2ad271d3bbe7c8f709d762428f8d35068e65ff18.tar
drakx-backup-do-not-use-2ad271d3bbe7c8f709d762428f8d35068e65ff18.tar.gz
drakx-backup-do-not-use-2ad271d3bbe7c8f709d762428f8d35068e65ff18.tar.bz2
drakx-backup-do-not-use-2ad271d3bbe7c8f709d762428f8d35068e65ff18.tar.xz
drakx-backup-do-not-use-2ad271d3bbe7c8f709d762428f8d35068e65ff18.zip
getNet(): only up wireless devices
-rw-r--r--perl-install/detect_devices.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index ce65b2929..df183ebcb 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -569,9 +569,9 @@ sub getNet() {
(map { if_(/^\s*([A-Za-z0-9:\.]*):/, $1) } cat_("/proc/net/dev")),
c::get_netdevices(),
);
- #- enable all interfaces
+ #- enable interfaces if get_wireless_stats() is available
#- needed for some drivers (Ralink) to be able to detect it is wireless aware
- c::enable_net_device($_) foreach @net_devices;
+ c::enable_net_device($_) foreach grep { -d "/sys/class/net/$_/wireless" } @net_devices;
@net_devices;
}