diff options
author | Till Kamppeter <tkamppeter@mandriva.com> | 2004-02-16 23:36:50 +0000 |
---|---|---|
committer | Till Kamppeter <tkamppeter@mandriva.com> | 2004-02-16 23:36:50 +0000 |
commit | 675cf17f8beed48c3fe929b719fea31529d36a1c (patch) | |
tree | fb249dd2c54a35dadce9dcd407e77a3fd6cc5870 /perl-install/printer | |
parent | cf286eca628e0c950c0e8739a9803db1aa9c35ef (diff) | |
download | drakx-backup-do-not-use-675cf17f8beed48c3fe929b719fea31529d36a1c.tar drakx-backup-do-not-use-675cf17f8beed48c3fe929b719fea31529d36a1c.tar.gz drakx-backup-do-not-use-675cf17f8beed48c3fe929b719fea31529d36a1c.tar.bz2 drakx-backup-do-not-use-675cf17f8beed48c3fe929b719fea31529d36a1c.tar.xz drakx-backup-do-not-use-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')
-rw-r--r-- | perl-install/printer/detect.pm | 2 |
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 }; } |