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.pm12
1 files changed, 8 insertions, 4 deletions
diff --git a/perl-install/printer/default.pm b/perl-install/printer/default.pm
index a6e64c30d..41da25c56 100644
--- a/perl-install/printer/default.pm
+++ b/perl-install/printer/default.pm
@@ -12,10 +12,14 @@ my $FOOMATIC_DEFAULT_SPOOLER = "$FOOMATICCONFDIR/defaultspooler";
sub set_printer {
my ($printer) = $_[0];
my $spooler = $printer->{SPOOLER};
- $spooler = "cups" if $spooler eq "rcups";
- run_program::rooted($::prefix, "foomatic-configure",
- "-D", "-q", "-s", $spooler,
- "-n", $printer->{DEFAULT}) or return 0;
+ if ($spooler eq "rcups") {
+ run_program::rooted($::prefix, "lpoptions",
+ "-d", $printer->{DEFAULT}) or return 0;
+ } else {
+ run_program::rooted($::prefix, "foomatic-configure",
+ "-D", "-q", "-s", $spooler,
+ "-n", $printer->{DEFAULT}) or return 0;
+ }
return 1;
}