summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-04 16:57:22 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-04 16:57:22 +0000
commitebd589dd4624dfa3b8d3f0862bd26186c4964c9c (patch)
tree2d749beb8878d40462cc421e0f9cea18431a269c
parent8345f0f682cad316e95b7d16a190dfdf25dd4d8a (diff)
downloaddrakx-ebd589dd4624dfa3b8d3f0862bd26186c4964c9c.tar
drakx-ebd589dd4624dfa3b8d3f0862bd26186c4964c9c.tar.gz
drakx-ebd589dd4624dfa3b8d3f0862bd26186c4964c9c.tar.bz2
drakx-ebd589dd4624dfa3b8d3f0862bd26186c4964c9c.tar.xz
drakx-ebd589dd4624dfa3b8d3f0862bd26186c4964c9c.zip
(getSCSI) set "media_type" as "generic" for generic SCSI devices
-rw-r--r--perl-install/detect_devices.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 981bd9d6b..49690f23f 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -216,7 +216,7 @@ sub getSCSI() {
# (see linux/include/scsi/scsi.h and sans-find-scanner.1)
my $raw_type = $scsi_types[$get->('type')];
- my $media_type = ${{ st => 'tape', sr => 'cdrom', sd => 'hd' }}{substr($device, 0, 2)} ||
+ my $media_type = ${{ st => 'tape', sr => 'cdrom', sd => 'hd', sg => 'generic' }}{substr($device, 0, 2)} ||
$raw_type =~ /Scanner|Processor/ && 'scanner';
push @l, { info => $get->('vendor') . ' ' . $get->('model'), host => $host, channel => $channel, id => $id, lun => $lun,