From c4856adc6cd6dd79ed8dbec5c5c4e5dcf1fd2e05 Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Mon, 15 Sep 2003 16:38:58 +0000 Subject: Small fix on LIDIL workaround. --- perl-install/printer/main.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/printer/main.pm') 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) { -- cgit v1.2.1