From 912a7a9a3731ba1fcbd6d90598323fa07f8ffc90 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 8 Mar 2001 13:43:54 +0000 Subject: (isBurner): use syslog to detect scsi burners --- perl-install/detect_devices.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 347ad4c7a..f5e6270c4 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -63,7 +63,15 @@ sub floppies() { sub floppy { first(floppies()) } #- example ls120, model = "LS-120 SLIM 02 UHD Floppy" -sub isBurner { my $f = tryOpen($_[0]); $f && c::isBurner(fileno($f)) } +sub isBurner { + my ($dev) = @_; + if (my ($nb) = $dev =~ /scd(.*)/) { + grep { /^(scd|sr)$nb:.*writer/ } syslog(); + } else { + my $f = tryOpen($dev); + $f && c::isBurner(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 isLS120Drive { $_[0]->{info} =~ /LS-?120|144MB/ } -- cgit v1.2.1