From 635236681521a7599dfb0ca5ec252c75f53a9942 Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Fri, 2 Sep 2005 22:17:17 +0000 Subject: - Made reloading of parallel port kernel modules (for auto-detection) also working if "ppdev" module is loaded. --- perl-install/printer/detect.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-install/printer/detect.pm b/perl-install/printer/detect.pm index 7ae07c7d9..3b293b5de 100644 --- a/perl-install/printer/detect.pm +++ b/perl-install/printer/detect.pm @@ -11,8 +11,8 @@ sub local_detect() { # Reload parallel port modules only when we were not called by # automatic setup of print queues, to avoid recursive calls if (!$::autoqueue) { - eval { modules::unload(qw(lp parport_pc parport)) }; #- on kernel 2.4 parport has to be unloaded to probe again - eval { modules::load(qw(parport_pc lp)) }; #- take care as not available on 2.4 kernel (silent error). + 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(); } -- cgit v1.2.1