diff options
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 8b36f99dc..c60e356c2 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -591,8 +591,13 @@ sub whatUsbport() { $manufacturer =~ s/Hewlett[-\s_]Packard/HP/; $manufacturer =~ s/HEWLETT[-\s_]PACKARD/HP/; } + # For HP's multi-function devices the real model name is in the "SKU" + # field. So use this field with priority for $model when it exists. if (($idstr =~ /MDL:([^;]+);/) || ($idstr =~ /MODEL:([^;]+);/)) { + $model = $1 if !$model; + } + if ($idstr =~ /SKU:([^;]+);/) { $model = $1; } if (($idstr =~ /DES:([^;]+);/) || |