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:
525da45
)
admin-full: When creating the ntp timeserver section also add the default ntp servers
author
Manuel Munz
<redacted>
Thu, 10 Nov 2011 13:44:22 +0000
(13:44 +0000)
committer
Manuel Munz
<redacted>
Thu, 10 Nov 2011 13:44:22 +0000
(13:44 +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 2f2687d00d472456942ff7aeae39b1dcbba76c35..27f0225d4c1ab329fc3a7a38f1c23f85d5704241 100644
(file)
--- a/
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
+++ b/
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
@@
-157,7
+157,12
@@
if has_ntpd then
-- timeserver setup was requested, create section and reload page
if m:formvalue("cbid.system._timeserver._enable") then
- m.uci:section("system", "timeserver", "ntp")
+ m.uci:section("system", "timeserver", "ntp",
+ {
+ server = { "0.openwrt.pool.ntp.org", "1.openwrt.pool.ntp.org", "2.openwrt.pool.ntp.org", "3.openwrt.pool.ntp.org" }
+ }
+ )
+
m.uci:save("system")
luci.http.redirect(luci.dispatcher.build_url("admin/system", arg[1]))
return
git clone https://git.99rst.org/PROJECT