2015-01-16 22:38:38 +00:00
|
|
|
-- Copyright 2008 Steven Barth <steven@midlink.org>
|
2015-01-16 22:46:42 +00:00
|
|
|
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
|
2015-01-16 22:38:38 +00:00
|
|
|
-- Licensed to the public under the Apache License 2.0.
|
2011-08-12 13:16:27 +00:00
|
|
|
|
2008-07-17 21:01:15 +00:00
|
|
|
module("luci.controller.ntpc", package.seeall)
|
|
|
|
|
|
|
|
function index()
|
2009-07-19 00:24:58 +00:00
|
|
|
if not nixio.fs.access("/etc/config/ntpclient") then
|
2008-07-17 21:01:15 +00:00
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2011-08-12 13:16:27 +00:00
|
|
|
local page
|
|
|
|
|
|
|
|
page = entry({"admin", "system", "ntpc"}, cbi("ntpc/ntpc"), _("Time Synchronisation"), 50)
|
2008-07-17 21:01:15 +00:00
|
|
|
page.dependent = true
|
2011-08-12 13:16:27 +00:00
|
|
|
|
|
|
|
page = entry({"mini", "system", "ntpc"}, cbi("ntpc/ntpcmini", {autoapply=true}), _("Time Synchronisation"), 50)
|
2008-07-17 21:01:15 +00:00
|
|
|
page.dependent = true
|
2011-08-12 13:16:27 +00:00
|
|
|
end
|