Merge pull request #5806 from odmdas/2102-sysntpd-iface
[21.02] luci-mod-system: add interface selection for NTPD
This commit is contained in:
commit
4f0e5e1de5
1 changed files with 10 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
'require uci';
|
||||
'require rpc';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
var callInitList, callInitAction, callTimezone,
|
||||
callGetLocaltime, callSetLocaltime, CBILocalTime;
|
||||
|
@ -281,6 +282,15 @@ return view.extend({
|
|||
o.ucisection = 'ntp';
|
||||
o.depends('enabled', '1');
|
||||
|
||||
o = s.taboption('timesync', widgets.NetworkSelect, 'interface',
|
||||
_('Bind NTP server'),
|
||||
_('Provide the NTP server to the selected interface or, if unspecified, to all interfaces'));
|
||||
o.ucisection = 'ntp';
|
||||
o.depends('enable_server', '1');
|
||||
o.multiple = false;
|
||||
o.nocreate = true;
|
||||
o.optional = true;
|
||||
|
||||
o = s.taboption('timesync', form.Flag, 'use_dhcp', _('Use DHCP advertised servers'));
|
||||
o.ucisection = 'ntp';
|
||||
o.default = o.enabled;
|
||||
|
|
Loading…
Reference in a new issue