summaryrefslogtreecommitdiffstats
path: root/perl-install/printer.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/printer.pm')
-rw-r--r--perl-install/printer.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm
index 454909cda..4bc8962f3 100644
--- a/perl-install/printer.pm
+++ b/perl-install/printer.pm
@@ -223,6 +223,12 @@ sub set_alternative {
return 1;
}
+sub pdq_panic_button {
+ my $setting = @_[0];
+ run_program::rooted($prefix, "/usr/sbin/pdqpanicbutton", "--$setting")
+ || die "Could not $setting PDQ panic buttons!";
+}
+
sub copy_printer_params($$) {
my ($from, $to) = @_;
map { $to->{$_} = $from->{$_} } grep { $_ ne 'configured' } keys %$from;