summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-03-02 19:32:24 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-03-02 19:32:24 +0000
commit2488276daf55f561f22f9bc526058e63f10ef580 (patch)
tree2db50cc01f8d72e3e791ff159814679c4af67029 /perl-install/detect_devices.pm
parent76c71daae7bc9159fecf71c89447f4ef57f474f5 (diff)
downloaddrakx-backup-do-not-use-2488276daf55f561f22f9bc526058e63f10ef580.tar
drakx-backup-do-not-use-2488276daf55f561f22f9bc526058e63f10ef580.tar.gz
drakx-backup-do-not-use-2488276daf55f561f22f9bc526058e63f10ef580.tar.bz2
drakx-backup-do-not-use-2488276daf55f561f22f9bc526058e63f10ef580.tar.xz
drakx-backup-do-not-use-2488276daf55f561f22f9bc526058e63f10ef580.zip
better jaz detection (thanks to Randy Welch)
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 82cf132bb..7da250d1e 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -136,7 +136,7 @@ sub isDvdDrive {
$f && c::isDvdDrive(fileno($f));
}
sub isZipDrive { $_[0]->{info} =~ /ZIP\s+\d+/ } #- accept ZIP 100, untested for bigger ZIP drive.
-sub isJazzDrive { $_[0]->{info} =~ /JAZZ?\s+/ } #- untested.
+sub isJazzDrive { $_[0]->{info} =~ /\bJAZZ?\b/i } #- accept "iomega jaz 1GB"
sub isLS120Drive { $_[0]->{info} =~ /LS-?120|144MB/ }
sub isRemovableDrive { &isZipDrive || &isLS120Drive || $_[0]->{media_type} eq 'fd' } #-or &isJazzDrive }