* align defaults with upstream
* mark our default UCI changes and enforce updates to config
Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
o = s.option(form.Flag, 'read_only', _('Read-only'));
o.enabled = 'yes';
o.disabled = 'no';
o = s.option(form.Flag, 'read_only', _('Read-only'));
o.enabled = 'yes';
o.disabled = 'no';
+ o.default = 'no'; // smb.conf default is 'yes'
+ o.rmempty = false;
s.option(form.Flag, 'force_root', _('Force Root'));
s.option(form.Flag, 'force_root', _('Force Root'));
o = s.option(form.Flag, 'guest_ok', _('Allow guests'));
o.enabled = 'yes';
o.disabled = 'no';
o = s.option(form.Flag, 'guest_ok', _('Allow guests'));
o.enabled = 'yes';
o.disabled = 'no';
+ o.default = 'yes'; // smb.conf default is 'no'
+ o.rmempty = false;
o = s.option(form.Flag, 'inherit_owner', _('Inherit owner'));
o.enabled = 'yes';
o.disabled = 'no';
o.default = 'no';
o = s.option(form.Flag, 'inherit_owner', _('Inherit owner'));
o.enabled = 'yes';
o.disabled = 'no';
o.default = 'no';
- s.option(form.Flag, 'hide_dot_files', _('Hide dot files'));
+ o = s.option(form.Flag, 'hide_dot_files', _('Hide dot files'));
+ o.enabled = 'yes';
+ o.disabled = 'no';
+ o.default = 'yes';
o = s.option(form.Value, 'create_mask', _('Create mask'));
o = s.option(form.Value, 'create_mask', _('Create mask'));
+ o.default = '0666'; // smb.conf default is '0744'
o = s.option(form.Value, 'dir_mask', _('Directory mask'));
o = s.option(form.Value, 'dir_mask', _('Directory mask'));
+ o.default = '0777'; // smb.conf default is '0755'