Changeset 7917

Show
Ignore:
Timestamp:
11/10/11 14:44:22 (19 months ago)
Author:
soma
Message:

admin-full: When creating the ntp timeserver section also add the default ntp servers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-full/luasrc/model/cbi/admin_system/system.lua

    r7915 r7917  
    158158    -- timeserver setup was requested, create section and reload page 
    159159    if m:formvalue("cbid.system._timeserver._enable") then 
    160         m.uci:section("system", "timeserver", "ntp") 
     160        m.uci:section("system", "timeserver", "ntp", 
     161            { 
     162                    server = { "0.openwrt.pool.ntp.org", "1.openwrt.pool.ntp.org", "2.openwrt.pool.ntp.org", "3.openwrt.pool.ntp.org" } 
     163            } 
     164        ) 
     165 
    161166        m.uci:save("system") 
    162167        luci.http.redirect(luci.dispatcher.build_url("admin/system", arg[1]))