modules/admin-full: disambiguate NTP client/server settings

This commit is contained in:
Jo-Philipp Wich 2012-09-28 19:08:47 +00:00
parent 45effcd38c
commit 00f8f2fbb0

View file

@ -192,7 +192,7 @@ if has_ntpd then
s.anonymous = true
s.addremove = false
o = s:option(Flag, "enable", translate("Enable builtin NTP server"))
o = s:option(Flag, "enable", translate("Enable NTP client"))
o.rmempty = false
function o.cfgvalue(self)
@ -211,6 +211,10 @@ if has_ntpd then
end
o = s:option(Flag, "enable_server", translate("Provide NTP server"))
o:depends("enable", "1")
o = s:option(DynamicList, "server", translate("NTP server candidates"))
o.datatype = "host"
o:depends("enable", "1")