33d67ec8d0b36df6ef2249c37ee1515590f38a76
[project/luci.git] / applications / luci-app-ntpc / luasrc / controller / ntpc.lua
1 -- Copyright 2008 Steven Barth <steven@midlink.org>
2 -- Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
3 -- Licensed to the public under the Apache License 2.0.
4
5 module("luci.controller.ntpc", package.seeall)
6
7 function index()
8         if not nixio.fs.access("/etc/config/ntpclient") then
9                 return
10         end
11         
12         local page
13
14         page = entry({"admin", "system", "ntpc"}, cbi("ntpc/ntpc"), _("Time Synchronisation"), 50)
15         page.dependent = true
16
17         page = entry({"mini", "system", "ntpc"}, cbi("ntpc/ntpcmini", {autoapply=true}), _("Time Synchronisation"), 50)
18         page.dependent = true
19 end