summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/draksambashare
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2005-08-25 20:09:00 +0000
committerAntoine Ginies <aginies@mandriva.com>2005-08-25 20:09:00 +0000
commiteaad4578731d05ebd27fce3917c677c6e2df8d87 (patch)
tree54e80c1740313d57e5c041c5ef979d3930702500 /perl-install/standalone/draksambashare
parentb46803bc2bd3f354a0691301b38766c56691f6c3 (diff)
downloaddrakx-eaad4578731d05ebd27fce3917c677c6e2df8d87.tar
drakx-eaad4578731d05ebd27fce3917c677c6e2df8d87.tar.gz
drakx-eaad4578731d05ebd27fce3917c677c6e2df8d87.tar.bz2
drakx-eaad4578731d05ebd27fce3917c677c6e2df8d87.tar.xz
drakx-eaad4578731d05ebd27fce3917c677c6e2df8d87.zip
add special printer section
Diffstat (limited to 'perl-install/standalone/draksambashare')
-rwxr-xr-xperl-install/standalone/draksambashare21
1 files changed, 21 insertions, 0 deletions
diff --git a/perl-install/standalone/draksambashare b/perl-install/standalone/draksambashare
index 4b6671e08..ed63c7fa6 100755
--- a/perl-install/standalone/draksambashare
+++ b/perl-install/standalone/draksambashare
@@ -243,6 +243,27 @@ sub help_b {
);
}
+sub printdollar_section() {
+ $samba->{'print$'};
+ $samba->{'print$'}{browseable} = "yes";
+ $samba->{'print$'}{path} = "/var/lib/samba/printers";
+ $samba->{'print$'}{browseable} = "yes";
+ $samba->{'print$'}{'write list'} = "\@adm root";
+ $samba->{'print$'}{'guest ok'} = "yes";
+ $samba->{'print$'}{'inherit permissions'} = "yes";
+}
+
+sub printer_section() {
+ $samba->{'pdf-gen'};
+ $samba->{'pdf-gen'}{path} = "/var/tmp";
+ $samba->{'pdf-gen'}{'guest ok'} = "no";
+ $samba->{'pdf-gen'}{printable} = "yes";
+ $samba->{'pdf-gen'}{comment} = "PDF Generator (only valid users)";
+ $samba->{'pdf-gen'}{printing} = "bsd";
+ $samba->{'pdf-gen'}{'print command'} = "/usr/share/samba/scripts/print-pdf \"%s\" \"%H\" \"//%L/%u\" \"%m\" \"%I\" \"%J\" &";
+ $samba->{'pdf-gen'}{'lpq command'} = "/bin/true";
+}
+
sub add_entry {
my ($treeview) = @_;
my $model = $treeview->get_model;