diff options
Diffstat (limited to 'samba_wizard/scripts')
-rwxr-xr-x | samba_wizard/scripts/Smbconf.pm | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/samba_wizard/scripts/Smbconf.pm b/samba_wizard/scripts/Smbconf.pm index 4e91d6c0..78c0bb65 100755 --- a/samba_wizard/scripts/Smbconf.pm +++ b/samba_wizard/scripts/Smbconf.pm @@ -115,13 +115,23 @@ sub printer_sharing { $self->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}; } |