From 2488276daf55f561f22f9bc526058e63f10ef580 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 2 Mar 2002 19:32:24 +0000 Subject: better jaz detection (thanks to Randy Welch) --- perl-install/detect_devices.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') 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 } -- cgit v1.2.1