compatible with gluon v2016.1.x since Apr 28, 2016
@@ -31,10 +31,6 @@ uci:save('autoupdater-wifi-fallback')
uci:save('network')
uci:save('wireless')
-uci:commit('autoupdater-wifi-fallback')
-uci:commit('network')
-uci:commit('wireless')
-
local minute = tonumber(fs.readfile('/usr/lib/micron.d/autoupdater'):match('^([0-9][0-9]?)%s'))
minute = (minute + 10) % 60
@@ -62,7 +62,6 @@ end
c:set('autoupdater', 'settings', 'version_file', '/lib/gluon/release')
c:save('autoupdater')
-c:commit('autoupdater')
local autoupdater_util = require 'autoupdater.util'
@@ -7,5 +7,4 @@ local altitude = uci:get("gluon-node-info", sname, "altitude")
if altitude ~= nil then
uci:delete("gluon-node-info", sname, "altitude")
uci:save("gluon-node-info")
- uci:commit("gluon-node-info")
end
@@ -21,7 +21,6 @@ function set_currentsite(site_code)
if site_code and tools.validate_site(site_code) then
uci:set('currentsite', 'current', 'name', site_code)
uci:save('currentsite')
- uci:commit('currentsite')
return true
return false
@@ -55,5 +55,4 @@ end
uci:set('wireless', interface24, 'country', '00')
uci:set('wireless', interface24, 'txpower', maximumTxPower)