modules/admin-full: disambiguate NTP client/server settings
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 28 Sep 2012 19:08:47 +0000 (19:08 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 28 Sep 2012 19:08:47 +0000 (19:08 +0000)
modules/admin-full/luasrc/model/cbi/admin_system/system.lua

index 27f0225d4c1ab329fc3a7a38f1c23f85d5704241..3a884c4813777401e97122fd24a80d1ab7a2bd03 100644 (file)
@@ -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")