From 675cf17f8beed48c3fe929b719fea31529d36a1c Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Mon, 16 Feb 2004 23:36:50 +0000 Subject: Recognize parallel printers also when they miss the "CLASS:PRINTER;" in their device ID string (ex: Brother HL-720, bug #7753). --- perl-install/printer/detect.pm | 2 ++ 1 file changed, 2 insertions(+) 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 }; } -- cgit v1.2.1