summaryrefslogtreecommitdiffstats
path: root/perl-install/printer/default.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/printer/default.pm')
-rw-r--r--perl-install/printer/default.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/printer/default.pm b/perl-install/printer/default.pm
index b6f45c889..a6e64c30d 100644
--- a/perl-install/printer/default.pm
+++ b/perl-install/printer/default.pm
@@ -41,7 +41,12 @@ sub get_spooler () {
if (-f "$::prefix$FOOMATIC_DEFAULT_SPOOLER") {
my $spool = cat_("$::prefix$FOOMATIC_DEFAULT_SPOOLER");
chomp $spool;
- return $spool if $spool =~ /cups|lpd|lprng|pdq/;
+ if ($spool =~ /cups/) {
+ my ($daemonless_cups, $_remote_cups_server) =
+ printer::main::read_client_conf();
+ $spool = ($daemonless_cups > 0 ? "rcups" : "cups");
+ }
+ return $spool if $spool =~ /cups|lpd|lprng|pdq/;
}
}