From f5de174cc04b7dda1f4b6b37da3ff38ccab9ad96 Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Sat, 14 Feb 2004 19:59:34 +0000 Subject: Recognize also "SN:" as serial number field in printer ID string (HP PhotoSmart 7760, bug #6534). --- perl-install/printer/detect.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/printer/detect.pm b/perl-install/printer/detect.pm index 28cb2a02c..ad5649b0d 100644 --- a/perl-install/printer/detect.pm +++ b/perl-install/printer/detect.pm @@ -124,7 +124,8 @@ sub whatUsbport() { $description =~ s/HEWLETT[-\s_]PACKARD/HP/; $itemfound = 1; } - if ($idstr =~ /SE*R*N:([^;]+);/) { + if (($idstr =~ /SE*R*N:([^;]+);/) || + ($idstr =~ /SN:([^;]+);/)) { $serialnumber = $1; $itemfound = 1; } -- cgit v1.2.1