feat: use simpler update_counter instead of timestamp for OTA updates
This commit is contained in:
+1
-2
@@ -691,7 +691,7 @@ end
|
||||
|
||||
local function checkAndApplyUpdate()
|
||||
if type(CFG) ~= 'table' then return end
|
||||
local remoteTs = tonumber(CFG.update_timestamp)
|
||||
local remoteTs = tonumber(CFG.update_counter)
|
||||
|
||||
if not remoteTs or remoteTs <= 0 then return end
|
||||
|
||||
@@ -728,7 +728,6 @@ local function checkAndApplyUpdate()
|
||||
if lastUpdateError then
|
||||
sleep(3)
|
||||
end
|
||||
|
||||
os.reboot()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user