summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-06-14 08:29:02 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-06-14 08:29:02 +0000
commit0ef292ec5453e0b367975ae22f046457c390f23c (patch)
treee452607b8c211c04eb382e38801691641170a91d
parentfb23cb243c0a52cbf9e7372666dd0aeac35dd296 (diff)
downloaddrakx-0ef292ec5453e0b367975ae22f046457c390f23c.tar
drakx-0ef292ec5453e0b367975ae22f046457c390f23c.tar.gz
drakx-0ef292ec5453e0b367975ae22f046457c390f23c.tar.bz2
drakx-0ef292ec5453e0b367975ae22f046457c390f23c.tar.xz
drakx-0ef292ec5453e0b367975ae22f046457c390f23c.zip
ethernet card detection: only rely on driver for matching ethernet cards, thus
preventing mislisting of other/unwanted devices (eg: bluetooth, wlan, AX25). last but not least, it enables us to catch ldetect/ldetect-lst/detect_devices bugs where some devices are *not* seen by drakx and drakconnect.
-rw-r--r--perl-install/harddrake/data.pm9
1 files changed, 2 insertions, 7 deletions
diff --git a/perl-install/harddrake/data.pm b/perl-install/harddrake/data.pm
index 6fc00709e..a9982d34f 100644
--- a/perl-install/harddrake/data.pm
+++ b/perl-install/harddrake/data.pm
@@ -197,13 +197,8 @@ our @tree =
#- protocol report are not accurate) so I'll need to verify against
#- known drivers :-(
require list_modules;
- my @usbnet = (list_modules::category2modules('network/usb'), qw(forcedeth nvnet)); # rought hack for nforce2's nvet
-
- f(grep {
- $_->{media_type} && $_->{media_type} =~ /^NETWORK/
- || member($_->{driver}, @usbnet)
- || $_->{type} && $_->{type} eq 'network'
- } @devices)
+ my @usbnet = list_modules::category2modules('network/gigabit|main|pcmcia|usb|wireless');
+ f(grep { member($_->{driver}, @usbnet) } @devices);
},
checked_on_boot => 1,
},