diff options
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 1384ed74d..ba0765fb5 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -38,11 +38,14 @@ sub zips() { grep { $_->{type} eq 'hd' && isZipDrive($_) } get(); } #-sub jazzs() { grep { $_->{type} eq 'hd' && isJazDrive($_) } get(); } sub cdroms() { my @l = grep { $_->{type} eq 'cdrom' } get(); - my $nb = $modules::scsi; #- this is gross! - foreach my $b (getIDEBurners()) { - log::l("getIDEBurners: $b"); - my ($e) = grep { $_->{device} eq $b } @l or next; - $e->{device} = "scd" . $nb++; + if (getIDEBurners()) { + require modules; + my $nb = modules::add_alias('scsi_hostadapter', 'ide-scsi') =~ /(\d+)/; + foreach my $b (getIDEBurners()) { + log::l("getIDEBurners: $b"); + my ($e) = grep { $_->{device} eq $b } @l or next; + $e->{device} = "scd" . $nb++; + } } @l; } |