diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/printer/detect.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/printer/detect.pm b/perl-install/printer/detect.pm index 9e3104b01..72568ee47 100644 --- a/perl-install/printer/detect.pm +++ b/perl-install/printer/detect.pm @@ -134,7 +134,9 @@ sub whatUsbport() { $commandset ||= $1; $itemfound = 1; } - next if !$itemfound; + # Nothing found? Try again if not in the third attempt, + # in the third attempt always accept. + next if !$itemfound && ($j < 3); # Was there a manufacturer and a model in the string? if ($manufacturer eq "" || $model eq "") { $manufacturer = ""; |