summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-05-22 16:04:09 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-05-22 16:04:09 +0000
commitac8363b8e956c9b3a6af84dc9cdf15f4e9bf9f0a (patch)
tree01bb3395c69b4e3cbe4b73a90f12e7ed5e18a866
parente65e536b462b9cae5a2a5ca6e345d4c08c79e071 (diff)
downloaddrakx-ac8363b8e956c9b3a6af84dc9cdf15f4e9bf9f0a.tar
drakx-ac8363b8e956c9b3a6af84dc9cdf15f4e9bf9f0a.tar.gz
drakx-ac8363b8e956c9b3a6af84dc9cdf15f4e9bf9f0a.tar.bz2
drakx-ac8363b8e956c9b3a6af84dc9cdf15f4e9bf9f0a.tar.xz
drakx-ac8363b8e956c9b3a6af84dc9cdf15f4e9bf9f0a.zip
do not fork usb module drivers list but reuse list_modules one instead
-rw-r--r--perl-install/harddrake/data.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/harddrake/data.pm b/perl-install/harddrake/data.pm
index 9595aae68..227395f6a 100644
--- a/perl-install/harddrake/data.pm
+++ b/perl-install/harddrake/data.pm
@@ -57,8 +57,8 @@ our @tree =
#- generic NIC detection for USB seems broken (class, subclass,
#- protocol report are not accurate) so I'll need to verify against
#- known drivers :-(
- my @usbnet = qw(CDCEther catc kaweth nvnet pegasus usbnet); # rought hack for nforce2's nvet
- # should be taken from detect_devices.pm or modules.pm. it's identical
+ require list_modules;
+ my @usbnet = (list_modules::category2modules('network/usb'), "nvnet"); # rought hack for nforce2's nvet
grep { $_->{media_type} && $_->{media_type} =~ /^NETWORK/ || member($_->{driver}, @usbnet) || $_->{type} && $_->{type} eq 'network' } @devices }, 1 ],
[ "MODEM", , N("Modem"), "modem.png", "", sub { detect_devices::getSpeedtouch(), detect_devices::getSagem(), detect_devices::getModem() }, 0 ],