summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-12-05 11:25:14 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-12-05 11:25:14 +0000
commit2e5b217dd1b56e15564f4435732c59acafdb0643 (patch)
tree4b13ef7289d619345d03a655f5fabcc814059f0a /perl-install
parent1ed1183db6b312534fa923d39475fdf3f379f65d (diff)
downloaddrakx-2e5b217dd1b56e15564f4435732c59acafdb0643.tar
drakx-2e5b217dd1b56e15564f4435732c59acafdb0643.tar.gz
drakx-2e5b217dd1b56e15564f4435732c59acafdb0643.tar.bz2
drakx-2e5b217dd1b56e15564f4435732c59acafdb0643.tar.xz
drakx-2e5b217dd1b56e15564f4435732c59acafdb0643.zip
one can get "Mass Storage" not always "Mass Storage|..."
Diffstat (limited to 'perl-install')
-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 52012ebb3..4df09ae12 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -208,7 +208,7 @@ sub isZipDrive { $_[0]{info} =~ /ZIP\s+\d+/ } #- accept ZIP 100, untested for bi
sub isJazzDrive { $_[0]{info} =~ /\bJAZZ?\b/i } #- accept "iomega jaz 1GB"
sub isLS120Drive { $_[0]{info} =~ /LS-?120|144MB/ }
sub isRemovableUsb { $_[0]{usb_media_type} && index($_[0]{usb_media_type}, 'Mass Storage') == 0 && usb2removable($_[0]) }
-sub isKeyUsb { $_[0]{usb_media_type} && index($_[0]{usb_media_type}, 'Mass Storage|') == 0 && $_[0]{media_type} eq 'hd' }
+sub isKeyUsb { $_[0]{usb_media_type} && index($_[0]{usb_media_type}, 'Mass Storage') == 0 && $_[0]{media_type} eq 'hd' }
sub isFloppyUsb { $_[0]{usb_driver} && $_[0]{usb_driver} eq 'Removable:floppy' }
sub isRemovableDrive {
my ($e) = @_;