diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-08-29 23:18:23 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-08-29 23:18:23 +0000 |
commit | 86fc862595dabe56dd7f248a5d12d813749d285e (patch) | |
tree | b7ad18397084429b11aed4c3e8dabb2eb065fd16 | |
parent | 997c41463d16c2bcf42f4e39d23608d9da8edecd (diff) | |
download | drakx-backup-do-not-use-86fc862595dabe56dd7f248a5d12d813749d285e.tar drakx-backup-do-not-use-86fc862595dabe56dd7f248a5d12d813749d285e.tar.gz drakx-backup-do-not-use-86fc862595dabe56dd7f248a5d12d813749d285e.tar.bz2 drakx-backup-do-not-use-86fc862595dabe56dd7f248a5d12d813749d285e.tar.xz drakx-backup-do-not-use-86fc862595dabe56dd7f248a5d12d813749d285e.zip |
(isRemovableDrive): usb with class "Floppy (UFI)" are removable even if they are not media_type fd
-rw-r--r-- | perl-install/detect_devices.pm | 2 |
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() { |