summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-27 17:15:28 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-27 17:15:28 +0000
commite942f74d8c944d08fb500c3d507d1c7edbc70405 (patch)
tree99131cfe12ef6533586bda28daf04a991247b3fb /perl-install
parent48eccdbedd9787345e73bfd6d7961b00289884e7 (diff)
downloaddrakx-backup-do-not-use-e942f74d8c944d08fb500c3d507d1c7edbc70405.tar
drakx-backup-do-not-use-e942f74d8c944d08fb500c3d507d1c7edbc70405.tar.gz
drakx-backup-do-not-use-e942f74d8c944d08fb500c3d507d1c7edbc70405.tar.bz2
drakx-backup-do-not-use-e942f74d8c944d08fb500c3d507d1c7edbc70405.tar.xz
drakx-backup-do-not-use-e942f74d8c944d08fb500c3d507d1c7edbc70405.zip
add isKeyUsb() (removed from move.pm)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/detect_devices.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index fcfb017e7..52012ebb3 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -208,6 +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 isFloppyUsb { $_[0]{usb_driver} && $_[0]{usb_driver} eq 'Removable:floppy' }
sub isRemovableDrive {
my ($e) = @_;