summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-29 23:18:23 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-29 23:18:23 +0000
commit86fc862595dabe56dd7f248a5d12d813749d285e (patch)
treeb7ad18397084429b11aed4c3e8dabb2eb065fd16 /perl-install/detect_devices.pm
parent997c41463d16c2bcf42f4e39d23608d9da8edecd (diff)
downloaddrakx-86fc862595dabe56dd7f248a5d12d813749d285e.tar
drakx-86fc862595dabe56dd7f248a5d12d813749d285e.tar.gz
drakx-86fc862595dabe56dd7f248a5d12d813749d285e.tar.bz2
drakx-86fc862595dabe56dd7f248a5d12d813749d285e.tar.xz
drakx-86fc862595dabe56dd7f248a5d12d813749d285e.zip
(isRemovableDrive): usb with class "Floppy (UFI)" are removable even if they are not media_type fd
Diffstat (limited to 'perl-install/detect_devices.pm')
-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 b9a3d4870..8b36f99dc 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -200,7 +200,7 @@ sub isRemovableUsb { index($_[0]{usb_media_type}, 'Mass Storage|') == 0 && usb2r
sub isFloppyUsb { $_[0]{usb_driver} eq 'Removable:floppy' }
sub isRemovableDrive {
my ($e) = @_;
- isZipDrive($e) || isLS120Drive($e) || $e->{media_type} eq 'fd' || isRemovableUsb($e);
+ isZipDrive($e) || isLS120Drive($e) || $e->{media_type} eq 'fd' || isRemovableUsb($e) || index($e->{usb_media_type}, 'Mass Storage|Floppy (UFI)') == 0;
}
sub getSCSI() {