summaryrefslogtreecommitdiffstats
path: root/perl-install/printer/detect.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/printer/detect.pm')
-rw-r--r--perl-install/printer/detect.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/printer/detect.pm b/perl-install/printer/detect.pm
index 97273a5ea..b164595a5 100644
--- a/perl-install/printer/detect.pm
+++ b/perl-install/printer/detect.pm
@@ -10,11 +10,13 @@ sub local_detect() {
modules::any_conf->read->get_probeall("usb-interface") and eval { modules::load($usbprintermodule) };
# Reload parallel port modules only when we were not called by
# automatic setup of print queues, to avoid recursive calls
- if (!$::autoqueue) {
+ if ($::autoqueue) {
+ whatUsbport();
+ } else {
eval { modules::unload(qw(lp parport_pc ppdev parport)) }; #- on kernel 2.4 parport has to be unloaded to probe again
eval { modules::load(qw(ppdev parport_pc lp)) }; #- take care as not available on 2.4 kernel (silent error).
+ whatPrinter();
}
- whatPrinter();
}
sub net_detect { whatNetPrinter(1, 0, @_) }