Browse Source

commit all UCI configs at the end

compatible with gluon v2016.1.x since Apr 28, 2016
Karsten Böddeker 8 years ago
parent
commit
c9af86fd75

+ 0 - 4
ffho/ffho-autoupdater-wifi-fallback/files/lib/gluon/upgrade/510-autoupdater-wifi-fallback

@@ -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
 

+ 0 - 1
ffho/ffho-autoupdater/files/lib/gluon/upgrade/500-autoupdater

@@ -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'

+ 0 - 1
ffho/ffho-geo-location-altitude-delete/files/lib/gluon/upgrade/900-geo-location-altitude-delete

@@ -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

+ 0 - 1
ffho/ffho-site-auto-select/files/lib/gluon/upgrade/003-site-auto-select

@@ -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
   end
   return false

+ 0 - 1
ffho/ffho-txpower-fix/files/lib/gluon/upgrade/210-ffho-txpower-fix

@@ -55,5 +55,4 @@ end
 uci:set('wireless', interface24, 'country', '00')
 uci:set('wireless', interface24, 'txpower', maximumTxPower)
 uci:save('wireless')
-uci:commit('wireless')