summaryrefslogtreecommitdiffstats
path: root/perl-install/printer
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2004-02-14 19:59:34 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2004-02-14 19:59:34 +0000
commitf5de174cc04b7dda1f4b6b37da3ff38ccab9ad96 (patch)
tree29dabce120c61ad6f8454757473466db55b0e059 /perl-install/printer
parentd675cb7bcea2107ce3d40624e4ff722e66dd3674 (diff)
downloaddrakx-f5de174cc04b7dda1f4b6b37da3ff38ccab9ad96.tar
drakx-f5de174cc04b7dda1f4b6b37da3ff38ccab9ad96.tar.gz
drakx-f5de174cc04b7dda1f4b6b37da3ff38ccab9ad96.tar.bz2
drakx-f5de174cc04b7dda1f4b6b37da3ff38ccab9ad96.tar.xz
drakx-f5de174cc04b7dda1f4b6b37da3ff38ccab9ad96.zip
Recognize also "SN:" as serial number field in printer ID string (HP PhotoSmart 7760, bug #6534).
Diffstat (limited to 'perl-install/printer')
-rw-r--r--perl-install/printer/detect.pm3
1 files changed, 2 insertions, 1 deletions
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;
}