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