This commit is contained in:
2026-07-11 16:48:02 +08:00
parent 1265deca0f
commit 3040b294ef
+3 -7
View File
@@ -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()