git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
45effcd
)
modules/admin-full: disambiguate NTP client/server settings
author
Jo-Philipp Wich
<redacted>
Fri, 28 Sep 2012 19:08:47 +0000
(19:08 +0000)
committer
Jo-Philipp Wich
<redacted>
Fri, 28 Sep 2012 19:08:47 +0000
(19:08 +0000)
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
patch
|
blob
|
history
diff --git
a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua
b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua
index 27f0225d4c1ab329fc3a7a38f1c23f85d5704241..3a884c4813777401e97122fd24a80d1ab7a2bd03 100644
(file)
--- a/
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
+++ b/
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
@@
-192,7
+192,7
@@
if has_ntpd then
s.anonymous = true
s.addremove = false
- o = s:option(Flag, "enable", translate("Enable
builtin NTP server
"))
+ o = s:option(Flag, "enable", translate("Enable
NTP client
"))
o.rmempty = false
function o.cfgvalue(self)
@@
-211,6
+211,10
@@
if has_ntpd then
end
+ o = s:option(Flag, "enable_server", translate("Provide NTP server"))
+ o:depends("enable", "1")
+
+
o = s:option(DynamicList, "server", translate("NTP server candidates"))
o.datatype = "host"
o:depends("enable", "1")
git clone https://git.99rst.org/PROJECT