mirror of
https://github.com/roacn/openwrt-packages.git
synced 2025-01-09 04:18:08 +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 reboot == 1 then
|
||||||
if arg3 == "cron" then
|
if arg3 == "cron" then
|
||||||
local f = io.open("/var/lock/" .. name .. ".lock", "r")
|
if not nixio.fs.access("/var/lock/" .. name .. ".lock") then
|
||||||
if f == nil then
|
|
||||||
luci.sys.call("touch /tmp/lock/" .. name .. "_cron.lock")
|
luci.sys.call("touch /tmp/lock/" .. name .. "_cron.lock")
|
||||||
else
|
|
||||||
f:close()
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1166,11 +1166,8 @@ local function update_node(manual)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if arg[3] == "cron" then
|
if arg[3] == "cron" then
|
||||||
local f = io.open("/var/lock/" .. appname .. ".lock", "r")
|
if not nixio.fs.access("/var/lock/" .. appname .. ".lock") then
|
||||||
if f == nil then
|
|
||||||
luci.sys.call("touch /tmp/lock/" .. appname .. "_cron.lock")
|
luci.sys.call("touch /tmp/lock/" .. appname .. "_cron.lock")
|
||||||
else
|
|
||||||
f:close()
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user