summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-01-30 07:40:07 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-01-30 07:40:07 +0000
commit8a47576f99c0f02b92fa1ae431314e929ae8098f (patch)
treee7d242c7a73bf946550d227681273e2b9f0679a7 /perl-install/harddrake
parent0a6e4bd5f73bd96e512b26140c6ee27384e9b3d3 (diff)
downloaddrakx-backup-do-not-use-8a47576f99c0f02b92fa1ae431314e929ae8098f.tar
drakx-backup-do-not-use-8a47576f99c0f02b92fa1ae431314e929ae8098f.tar.gz
drakx-backup-do-not-use-8a47576f99c0f02b92fa1ae431314e929ae8098f.tar.bz2
drakx-backup-do-not-use-8a47576f99c0f02b92fa1ae431314e929ae8098f.tar.xz
drakx-backup-do-not-use-8a47576f99c0f02b92fa1ae431314e929ae8098f.zip
- cosmetic fix for "drakconnect does not detect nvnet part of nvforce2 chips"
hint: their class is MEMORY_RAM :-( ... - btw, simplify unknown devices detection (merging tests regarding driver and media type) - move nforce system controllers in bridge class (which is renamed "bridges and system controllers" aka where we put stuff we've nothing to configure but we don't want to put them in controller so that users are not afraid) but nvnet
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r--perl-install/harddrake/data.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/harddrake/data.pm b/perl-install/harddrake/data.pm
index 94dd8d328..0b3b0c78b 100644
--- a/perl-install/harddrake/data.pm
+++ b/perl-install/harddrake/data.pm
@@ -12,7 +12,7 @@ my @devices = detect_devices::probeall(1);
# Update me each time you handle one more devices class (aka configurator)
sub unknown {
- grep { $_->{media_type} !~ /tape|SERIAL_(USB|SMBUS)|Printer|Hub|DISPLAY|MULTIMEDIA_(VIDEO|AUDIO|OTHER)|STORAGE_(IDE|SCSI|OTHER)|BRIDGE|NETWORK/ && $_->{driver} ne '^(scanner|usbvision)$' && $_->{type} ne 'network' && $_->{driver} !~ /Mouse:USB|class\|Mouse/ && $_->{media_type} !~ /class\|Mouse/ && $_->{driver} !~ /www.linmodems.org/ } @devices;
+ grep { $_->{media_type} !~ /BRIDGE|class\|Mouse|DISPLAY|Hub|MEMORY_RAM|MULTIMEDIA_(VIDEO|AUDIO|OTHER)|NETWORK|Printer|SERIAL_(USB|SMBUS)|STORAGE_(IDE|OTHER|SCSI)|tape/ && $_->{driver} !~ /^(scanner|usbvision)$|Mouse:USB|class\|Mouse|www.linmodems.org|nvnet/ && $_->{type} ne 'network' } @devices;
}
@@ -41,12 +41,12 @@ 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 pegasus usbnet);
+ 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
grep { $_->{media_type} =~ /^NETWORK/ || member($_->{driver}, @usbnet) || $_->{type} eq 'network' } @devices }, 1 ],
[ "MODEM", "Modem", "modem.png", "", sub { detect_devices::getModem() }, 0 ],
- [ "BRIDGE", "Bridge(s)", "memory.png", "", sub { grep { $_->{media_type} =~ /BRIDGE/ } @devices }, 0 ],
+ [ "BRIDGE", "Bridges and system controllers", "memory.png", "", sub { grep { $_->{media_type} =~ /BRIDGE|MEMORY_RAM/ && $_->{driver} ne 'nvnet' } @devices }, 0 ],
[ "UNKNOWN", "Unknown/Others", "unknown.png", "", \&unknown, 0 ],
[ "PRINTER", "Printer", "hw_printer.png", "$sbindir/printerdrake", sub {