summaryrefslogtreecommitdiffstats
path: root/perl-install/printer/detect.pm
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2004-02-16 23:36:50 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2004-02-16 23:36:50 +0000
commit675cf17f8beed48c3fe929b719fea31529d36a1c (patch)
treefb249dd2c54a35dadce9dcd407e77a3fd6cc5870 /perl-install/printer/detect.pm
parentcf286eca628e0c950c0e8739a9803db1aa9c35ef (diff)
downloaddrakx-675cf17f8beed48c3fe929b719fea31529d36a1c.tar
drakx-675cf17f8beed48c3fe929b719fea31529d36a1c.tar.gz
drakx-675cf17f8beed48c3fe929b719fea31529d36a1c.tar.bz2
drakx-675cf17f8beed48c3fe929b719fea31529d36a1c.tar.xz
drakx-675cf17f8beed48c3fe929b719fea31529d36a1c.zip
Recognize parallel printers also when they miss the "CLASS:PRINTER;" in their device ID string (ex: Brother HL-720, bug #7753).
Diffstat (limited to 'perl-install/printer/detect.pm')
-rw-r--r--perl-install/printer/detect.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/printer/detect.pm b/perl-install/printer/detect.pm
index ad5649b0d..038fe5006 100644
--- a/perl-install/printer/detect.pm
+++ b/perl-install/printer/detect.pm
@@ -47,6 +47,8 @@ sub whatParport() {
$elem->{$1} =~ s/HEWLETT[-\s_]PACKARD/HP/;
}
}
+ # Some parallel printers miss the "CLASS" field
+ $elem->{CLASS} = 'PRINTER' if !defined($elem->{CLASS});
}
push @res, { port => "/dev/lp$_", val => $elem };
}