mirror of
https://github.com/roacn/openwrt-packages.git
synced 2025-01-07 03:16:45 +08:00
🌴 Sync 2024-05-28 00:26
This commit is contained in:
parent
48c913eaab
commit
a3d686c44d
@ -466,11 +466,8 @@ luci.sys.call("uci commit " .. name)
|
||||
|
||||
if reboot == 1 then
|
||||
if arg3 == "cron" then
|
||||
local f = io.open("/var/lock/" .. name .. ".lock", "r")
|
||||
if f == nil then
|
||||
if not nixio.fs.access("/var/lock/" .. name .. ".lock") then
|
||||
luci.sys.call("touch /tmp/lock/" .. name .. "_cron.lock")
|
||||
else
|
||||
f:close()
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1166,11 +1166,8 @@ local function update_node(manual)
|
||||
end
|
||||
|
||||
if arg[3] == "cron" then
|
||||
local f = io.open("/var/lock/" .. appname .. ".lock", "r")
|
||||
if f == nil then
|
||||
if not nixio.fs.access("/var/lock/" .. appname .. ".lock") then
|
||||
luci.sys.call("touch /tmp/lock/" .. appname .. "_cron.lock")
|
||||
else
|
||||
f:close()
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user