summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/printer/main.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/printer/main.pm b/perl-install/printer/main.pm
index a099eac69..5bd467b03 100644
--- a/perl-install/printer/main.pm
+++ b/perl-install/printer/main.pm
@@ -2186,6 +2186,8 @@ sub configure_hpoj {
# Check if the device is really an HP multi-function device
#my $libusb = 0;
foreach my $libusb (0, 1) {
+ # Do access via libusb/user mode only if we have a USB device
+ next if ($libusb && ($bus ne "usb"));
# Preliminary workaround to make the user-mode USB devices
# (LIDIL devices) installable as verification of the HPOJ
# settings of these devices does not work yet. The workaround
@@ -2197,8 +2199,6 @@ sub configure_hpoj {
$device_ok = 1;
next;
}
- # Do access via libusb/user mode only if we have a USB device
- next if ($libusb && ($bus ne "usb"));
my $printermoduleunloaded = 0;
if ($bus ne "hpjd") {
if (!$libusb) {