summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-11-08 13:39:47 +0000
committerFrancois Pons <fpons@mandriva.com>2000-11-08 13:39:47 +0000
commitcff16feb264524026413ff67e4a741b97892cbdf (patch)
treebc72a01984bc8efdadc95dc157d7a21861bfcaa8 /perl-install
parentb48f228228b48c7b5f35cfd97a7efe7c7c75b91c (diff)
downloaddrakx-backup-do-not-use-cff16feb264524026413ff67e4a741b97892cbdf.tar
drakx-backup-do-not-use-cff16feb264524026413ff67e4a741b97892cbdf.tar.gz
drakx-backup-do-not-use-cff16feb264524026413ff67e4a741b97892cbdf.tar.bz2
drakx-backup-do-not-use-cff16feb264524026413ff67e4a741b97892cbdf.tar.xz
drakx-backup-do-not-use-cff16feb264524026413ff67e4a741b97892cbdf.zip
add minimal management of /etc/cups/cupsd.conf
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/printer.pm19
1 files changed, 19 insertions, 0 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm
index d8fd4f19d..a16ecbe14 100644
--- a/perl-install/printer.pm
+++ b/perl-install/printer.pm
@@ -308,6 +308,25 @@ sub read_printer_db(;$) {
}
#------------------------------------------------------------------------------
+sub read_cupsd_conf {
+ my @cupsd_conf;
+ local *F;
+
+ open F, "$prefix/etc/cups/cupsd.conf";
+ @cupsd_conf = <F>;
+ close F;
+
+ @cupsd_conf;
+}
+sub write_cupsd_conf {
+ my (@cupsd_conf) = @_;
+ local *F;
+
+ open F, ">$prefix/etc/cups/cupsd.conf";
+ print F @cupsd_conf;
+ close F;
+}
+
sub read_printers_conf {
my ($printer) = @_;
my $current = undef;