From 4e6479359c87006a17792e0d1c8e43fe76d2b7b1 Mon Sep 17 00:00:00 2001 From: Arnaud Desmons Date: Thu, 12 Sep 2002 09:07:11 +0000 Subject: added some check func and globalize old conf --- samba_wizard/samba.wiz | 4 ++-- samba_wizard/scripts/Smbconf.pm | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'samba_wizard') diff --git a/samba_wizard/samba.wiz b/samba_wizard/samba.wiz index c71a3794..58e91692 100644 --- a/samba_wizard/samba.wiz +++ b/samba_wizard/samba.wiz @@ -153,7 +153,7 @@ comment_menu("printers", ""); } +sub check_workgroup { + !$ENV{workgroup} and return 1; + 10; +} + +sub check_banner { + !$ENV{banner} and return 1; + 10; +} + +my $old = read_conf("/etc/samba/smb.conf"); + sub get_workgroup { - my $old = read_conf("/etc/samba/smb.conf"); $old->{conf}->{global}{workgroup}{value}; } sub get_banner { - my $old = read_conf("/etc/samba/smb.conf"); $old->{conf}->{global}{"server string"}{value}; } -- cgit v1.2.1