summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-04-11 12:30:14 +0000
committerFrancois Pons <fpons@mandriva.com>2001-04-11 12:30:14 +0000
commit0bd61fb28d791c2ceb6b390b7f2f651274158bf6 (patch)
treeeb2816b9cd82d1019e45d07031d0750e7e0217be
parentf1938a800ccee64e384a663bea7840ca20203b76 (diff)
downloaddrakx-0bd61fb28d791c2ceb6b390b7f2f651274158bf6.tar
drakx-0bd61fb28d791c2ceb6b390b7f2f651274158bf6.tar.gz
drakx-0bd61fb28d791c2ceb6b390b7f2f651274158bf6.tar.bz2
drakx-0bd61fb28d791c2ceb6b390b7f2f651274158bf6.tar.xz
drakx-0bd61fb28d791c2ceb6b390b7f2f651274158bf6.zip
make printer devices more accurate.
-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) {