summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-02-27 23:08:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-02-27 23:08:44 +0000
commita4b844e4c4ef101c4a79e4831a36f0ff51bd1f32 (patch)
tree9c9debe426c01444b7bd0975d1e3923d0a2c641f /perl-install/detect_devices.pm
parent1c0127d9f80cb91dc16a212f7380f3a45381c0df (diff)
downloaddrakx-backup-do-not-use-a4b844e4c4ef101c4a79e4831a36f0ff51bd1f32.tar
drakx-backup-do-not-use-a4b844e4c4ef101c4a79e4831a36f0ff51bd1f32.tar.gz
drakx-backup-do-not-use-a4b844e4c4ef101c4a79e4831a36f0ff51bd1f32.tar.bz2
drakx-backup-do-not-use-a4b844e4c4ef101c4a79e4831a36f0ff51bd1f32.tar.xz
drakx-backup-do-not-use-a4b844e4c4ef101c4a79e4831a36f0ff51bd1f32.zip
no_comment
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index a8653a9ff..84b74d2e0 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -36,7 +36,15 @@ sub get {
sub hds() { grep { $_->{type} eq 'hd' && ($::isStandalone || !isRemovableDrive($_)) } get(); }
sub zips() { grep { $_->{type} eq 'hd' && isZipDrive($_) } get(); }
#-sub jazzs() { grep { $_->{type} eq 'hd' && isJazDrive($_) } get(); }
-sub cdroms() { grep { $_->{type} eq 'cdrom' } get(); }
+sub cdroms() {
+ my @l = grep { $_->{type} eq 'cdrom' } get();
+ my $nb = $modules::scsi; #- this is gross!
+ foreach (getIDEBurners()) {
+ my ($e) = grep { $_->{device} eq $_ } @l or next;
+ $e->{device} = "scd" . ($nb++ || '');
+ }
+ @l;
+}
sub floppies() {
(grep { tryOpen($_) } qw(fd0 fd1)),
(grep { $_->{type} eq 'fd' } get());
@@ -100,7 +108,6 @@ sub getIDE() {
my $num = ord (($d =~ /(.)$/)[0]) - ord 'a';
push @idi, { type => $type, device => basename($d), info => $info, bus => $num/2, id => $num%2 };
}
- #- push @idi, { type => 'hd', device => 'hde', info => 'ZIP 100', bus => '1', id => 1 } if $::testing;
@idi;
}