diff options
author | Francois Pons <fpons@mandriva.com> | 2000-11-08 13:39:47 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-11-08 13:39:47 +0000 |
commit | cff16feb264524026413ff67e4a741b97892cbdf (patch) | |
tree | bc72a01984bc8efdadc95dc157d7a21861bfcaa8 /perl-install/printer.pm | |
parent | b48f228228b48c7b5f35cfd97a7efe7c7c75b91c (diff) | |
download | drakx-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/printer.pm')
-rw-r--r-- | perl-install/printer.pm | 19 |
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; |