- function o.cfgvalue(self)
- return luci.sys.init.enabled("sysntpd")
- and self.enabled or self.disabled
- end
+ x = s:option(Button, "_enable")
+ x.title = translate("Time Synchronization is not configured yet.")
+ x.inputtitle = translate("Setup Time Synchronization")
+ x.inputstyle = "apply"
+
+ else
+
+ s = m:section(TypedSection, "timeserver", translate("Time Synchronization"))
+ s.anonymous = true
+ s.addremove = false
+
+ o = s:option(Flag, "enable", translate("Enable builtin NTP server"))
+ o.rmempty = false