summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2005-02-19 03:16:15 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2005-02-19 03:16:15 +0000
commitf726ec294d69f12e4866cbfbfb50349a68143d23 (patch)
tree9167f5b29c08d5a0e22a09b706aef943eacad66f /perl-install
parentefda5d58894ee4ff5e07bc5b98a428bf243356cd (diff)
downloaddrakx-backup-do-not-use-f726ec294d69f12e4866cbfbfb50349a68143d23.tar
drakx-backup-do-not-use-f726ec294d69f12e4866cbfbfb50349a68143d23.tar.gz
drakx-backup-do-not-use-f726ec294d69f12e4866cbfbfb50349a68143d23.tar.bz2
drakx-backup-do-not-use-f726ec294d69f12e4866cbfbfb50349a68143d23.tar.xz
drakx-backup-do-not-use-f726ec294d69f12e4866cbfbfb50349a68143d23.zip
- Added support for the new keywords MANUAL, MANUALREQUIRED, and KERNEL in the
scanner database
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/scanner.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/scanner.pm b/perl-install/scanner.pm
index 433191b97..17b2eae75 100755
--- a/perl-install/scanner.pm
+++ b/perl-install/scanner.pm
@@ -168,7 +168,7 @@ sub configured() {
sub nonroot_access_for_parport {
# This function configures a non-root access for parallel port
- # scanners by running saned as root, esporting the scanner to
+ # scanners by running saned as root, exporting the scanner to
# localhost and letting the user's frontend use the "net" backend
# to access the scanner through the loopback network device.
@@ -488,7 +488,10 @@ sub readScannerDB {
ASK => sub { $card->{ask} = $val },
SERVER => sub { $card->{server} = $val },
DRIVER => sub { $card->{driver} = $val },
+ KERNEL => sub { push(@{$card->{kernel}}, $val) },
UNSUPPORTED => sub { $card->{flags}{unsupported} = 1 },
+ MANUAL => sub { $card->{flags}{manual} = 1 },
+ MANUALREQUIRED => sub { $card->{flags}{manual} = 2 },
COMMENT => sub {},
};