summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-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 };
}