1
0

ntpc.lua 565 B

12345678910111213141516171819
  1. -- Copyright 2008 Steven Barth <steven@midlink.org>
  2. -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
  3. -- Licensed to the public under the Apache License 2.0.
  4. module("luci.controller.ntpc", package.seeall)
  5. function index()
  6. if not nixio.fs.access("/etc/config/ntpclient") then
  7. return
  8. end
  9. local page
  10. page = entry({"admin", "system", "ntpc"}, cbi("ntpc/ntpc"), _("Time Synchronisation"), 50)
  11. page.dependent = true
  12. page = entry({"mini", "system", "ntpc"}, cbi("ntpc/ntpcmini", {autoapply=true}), _("Time Synchronisation"), 50)
  13. page.dependent = true
  14. end