summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-09-28 19:08:47 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-09-28 19:08:47 +0000
commit00f8f2fbb0995b1b307f2edcc26379be6fc55425 (patch)
treefeb46b1e31684d4c8035bdf52b9225e48fb38c03 /modules/admin-full/luasrc/model/cbi
parent45effcd38cf2486f1a22abef7a5ac69b22fe0c8c (diff)
modules/admin-full: disambiguate NTP client/server settings
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/system.lua6
1 files changed, 5 insertions, 1 deletions
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 27f0225d4..3a884c481 100644
--- 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")