From ca767deb6864fb31138cd5529b4fdfd00d61ee73 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Thu, 10 Nov 2011 13:45:04 +0000 Subject: [PATCH] luci-0.10: Merge r7917 --- .../admin-full/luasrc/model/cbi/admin_system/system.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 2f2687d00..27f0225d4 100644 --- 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 -- 2.25.1