function index()
require("luci.i18n")
luci.i18n.loadc("ntpc")
- if not luci.fs.isfile("/etc/config/ntpclient") then
+ if not nixio.fs.access("/etc/config/ntpclient") then
return
end
- local page = entry({"admin", "system", "ntpc"}, cbi("ntpc/ntpc"), luci.i18n.translate("ntpc"), 50)
+ local page = entry({"admin", "system", "ntpc"}, cbi("ntpc/ntpc"), luci.i18n.translate("Time Synchronisation"), 50)
page.i18n = "ntpc"
page.dependent = true
- local page = entry({"mini", "system", "ntpc"}, cbi("ntpc/ntpc"), luci.i18n.translate("ntpc"), 50)
+ local page = entry({"mini", "system", "ntpc"}, cbi("ntpc/ntpcmini", {autoapply=true}), luci.i18n.translate("Time Synchronisation"), 50)
page.i18n = "ntpc"
page.dependent = true
end
\ No newline at end of file