summaryrefslogtreecommitdiffstats
path: root/perl-install/scanner.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-08-06 18:54:31 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-08-06 18:54:31 +0000
commitcca092a8c7c4be4a5874935a790877d949ef238a (patch)
tree920eed6c76a78ef8bfec848893310dca8fbd67c0 /perl-install/scanner.pm
parentc91b9d49efe2f49f5a938f675c2fcc69c9db9758 (diff)
downloaddrakx-cca092a8c7c4be4a5874935a790877d949ef238a.tar
drakx-cca092a8c7c4be4a5874935a790877d949ef238a.tar.gz
drakx-cca092a8c7c4be4a5874935a790877d949ef238a.tar.bz2
drakx-cca092a8c7c4be4a5874935a790877d949ef238a.tar.xz
drakx-cca092a8c7c4be4a5874935a790877d949ef238a.zip
- rename scanner::findScannerUsbport as scanner::detect
as in mouse.pm - scanner::detect : detect SCSI scanners too
Diffstat (limited to 'perl-install/scanner.pm')
-rwxr-xr-xperl-install/scanner.pm12
1 files changed, 7 insertions, 5 deletions
diff --git a/perl-install/scanner.pm b/perl-install/scanner.pm
index 995a2f2e4..1bc381c9d 100755
--- a/perl-install/scanner.pm
+++ b/perl-install/scanner.pm
@@ -51,7 +51,7 @@ sub add2dll {
close F;
}
-sub findScannerUsbport {
+sub detect {
my ($i, $elem, @res) = (0, {});
foreach (grep { $_->{driver} =~ /scanner/ } detect_devices::usb_probe()) {
#my ($manufacturer, $model) = split '\|', $_->{description};
@@ -65,14 +65,16 @@ sub findScannerUsbport {
}};
++$i;
}
+ foreach ({$_->{media_type} =~ /scanner/ } detect_devices::getSCSI()) {
+ push @res, { port => "/dev/usb/scanner$i",
+ val => { DESCRIPTION => $_->{info} },
+ };
+ ++$i;
+ }
@res;
}
-sub findScannerScsi {
-
-}
-
sub readScannerDB {
my ($file) = @_;
my ($card, %cards);