summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/printerdrake.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/printerdrake.pm b/perl-install/printerdrake.pm
index 4fcbb2fac..7c2752e29 100644
--- a/perl-install/printerdrake.pm
+++ b/perl-install/printerdrake.pm
@@ -36,7 +36,11 @@ sub setup_local($$$) {
$_->{val}{DESCRIPTION} and push @str, _("A printer, model \"%s\", has been detected on ",
$_->{val}{DESCRIPTION}) . $_->{port};
}
- @port = detect_devices::whatPrinterPort();
+ if ($::expert || !@str) {
+ @port = detect_devices::whatPrinterPort();
+ } else {
+ @port = map { $_->{port} } grep { $_->{val}{DESCRIPTION} } @parport;
+ }
$printer->{DEVICE} = $port[0] if $port[0];
if ($in) {