luci-0.10: Merge r7917
This commit is contained in:
parent
a048a52f84
commit
ca767deb68
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue