2
This commit is contained in:
@@ -1465,7 +1465,7 @@ local function checkAndApplyUpdate()
|
|||||||
|
|
||||||
if not remoteTs or remoteTs <= 0 then return end
|
if not remoteTs or remoteTs <= 0 then return end
|
||||||
|
|
||||||
local attemptFile = ".last_update_ts_gate2"
|
local attemptFile = ".last_update_ts2"
|
||||||
if fs.exists(attemptFile) then
|
if fs.exists(attemptFile) then
|
||||||
local f = fs.open(attemptFile, "r")
|
local f = fs.open(attemptFile, "r")
|
||||||
local tried = tonumber(f and f.readAll() or "0") or 0
|
local tried = tonumber(f and f.readAll() or "0") or 0
|
||||||
@@ -1476,9 +1476,7 @@ local function checkAndApplyUpdate()
|
|||||||
end
|
end
|
||||||
|
|
||||||
isUpdating = true
|
isUpdating = true
|
||||||
if type(drawReadyScreen) == "function" then
|
pcall(drawReadyScreen)
|
||||||
pcall(drawReadyScreen)
|
|
||||||
end
|
|
||||||
sleep(0.5)
|
sleep(0.5)
|
||||||
|
|
||||||
local f = fs.open(attemptFile, "w")
|
local f = fs.open(attemptFile, "w")
|
||||||
@@ -1508,9 +1506,7 @@ local function checkAndApplyUpdate()
|
|||||||
end
|
end
|
||||||
|
|
||||||
isUpdating = false
|
isUpdating = false
|
||||||
if type(drawReadyScreen) == "function" then
|
pcall(drawReadyScreen)
|
||||||
pcall(drawReadyScreen)
|
|
||||||
end
|
|
||||||
|
|
||||||
if not lastUpdateError then
|
if not lastUpdateError then
|
||||||
os.reboot()
|
os.reboot()
|
||||||
|
|||||||
Reference in New Issue
Block a user