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.
5 m = Map("ntpclient", translate("Time Synchronisation"), translate("Synchronizes the system time"))
7 s = m:section(TypedSection, "ntpclient", translate("General"))
11 s:option(DummyValue, "_time", translate("Current system time")).value = os.date("%c")
13 interval = s:option(Value, "interval", translate("Update interval (in seconds)"))
14 interval.datatype = "and(uinteger,min(1))"
15 interval.rmempty = true
17 count = s:option(Value, "count", translate("Count of time measurements"), translate("empty = infinite"))
18 count.datatype = "and(uinteger,min(1))"
21 s2 = m:section(TypedSection, "ntpdrift", translate("Clock Adjustment"))
25 freq = s2:option(Value, "freq", translate("Offset frequency"))
26 freq.datatype = "integer"
29 s3 = m:section(TypedSection, "ntpserver", translate("Time Servers"))
32 s3.template = "cbi/tblsection"
34 s3:option(Value, "hostname", translate("Hostname"))
35 port = s3:option(Value, "port", translate("Port"))
36 port.datatype = "port"