Terjan Pascal <[EMAIL PROTECTED]> writes:
> Both my CD drives appear under "CDROM", but they also appear under
> "SCSI Controllers"
i forget to say that if they appear in both, it's because, i called
detect_devices::getSCSI() whereas it was already called by probeall().
please, can you test this patch (apply it as root in
/usr/lib/libDrakx/) ?
Index: harddrake/data.pm
===================================================================
RCS file: /cooker/gi/perl-install/harddrake/data.pm,v
retrieving revision 1.14
diff -u -3 -p -u -r1.14 data.pm
--- harddrake/data.pm 2002/07/25 20:07:48 1.14
+++ harddrake/data.pm 2002/07/31 08:04:47
@@ -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|DISPLAY|MULTIMEDIA_(VIDEO|AUDIO|OTHER)|STORAGE_IDE|BRIDGE|NETWORK/) && ($_->{driver} ne 'scanner') } @devices;
+ grep { ($_->{media_type} !~ /tape|SERIAL_(USB|SMBUS)|Printer|DISPLAY|MULTIMEDIA_(VIDEO|AUDIO|OTHER)|STORAGE_(IDE|SCSI)|BRIDGE|NETWORK/) && ($_->{driver} ne 'scanner') } @devices;
}
@@ -66,7 +66,7 @@ our @tree =
["JOYSTICK","Joystick", "joystick.png", "", sub {}],
["ATA_STORAGE","(E)IDE/ATA controllers", "ide_hd.png", "", sub {grep { $_->{media_type} =~ 'STORAGE_IDE' } @devices}],
- ["SCSI_CONTROLLER","SCSI controllers", "scsi.png", "", \&detect_devices::getSCSI],
+ ["SCSI_CONTROLLER","SCSI controllers", "scsi.png", "", sub {grep { $_->{media_type} =~ 'STORAGE_SCSI' } @devices}],
["USB_CONTROLLER","USB controllers", "usb.png", "", sub {grep { $_->{media_type} =~ 'SERIAL_USB' } @devices}],
["SMB_CONTROLLER","SMBus controllers", "usb.png", "", sub {grep { $_->{media_type} =~ 'SERIAL_SMBUS' } @devices}],
);
stew, can you also check it fix your scsi problem ?
--
thierry which is wearing a brown paper bag ...