summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-11-03 13:25:20 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-11-03 13:25:20 +0000
commit4dc3ecdfa9e591fbd9482a9c0b24f3217a3ec7e3 (patch)
tree9ad260c6bb1344692f63568002dfb31ca23e096c /perl-install/detect_devices.pm
parente01c59488b87ae069d07532b1a356c56cc8a2ef6 (diff)
downloaddrakx-4dc3ecdfa9e591fbd9482a9c0b24f3217a3ec7e3.tar
drakx-4dc3ecdfa9e591fbd9482a9c0b24f3217a3ec7e3.tar.gz
drakx-4dc3ecdfa9e591fbd9482a9c0b24f3217a3ec7e3.tar.bz2
drakx-4dc3ecdfa9e591fbd9482a9c0b24f3217a3ec7e3.tar.xz
drakx-4dc3ecdfa9e591fbd9482a9c0b24f3217a3ec7e3.zip
ask the kernel the list of network devices instead of manually probing
everything (this enable to handle more than 4 ethernet cards)
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index edd586655..455269ba4 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -16,7 +16,6 @@ use c;
#-#####################################################################################
#- Globals
#-#####################################################################################
-my @netdevices = map { my $l = $_; map { "$l$_" } (0..3) } qw(eth tr fddi plip);
my %serialprobe;
#-######################################################################################
@@ -418,7 +417,7 @@ sub getSagem() {
}
sub getNet() {
- grep { !(($::isStandalone || $::live) && /plip/) && c::hasNetDevice($_) } @netdevices;
+ grep { /^(eth|fddi|plip|tr|wifi|wlan)/ } c::getNetInterfaces();
}
#sub getISDN() {