update 2026-05-27 23:25:57

This commit is contained in:
action committed 2026-05-27 23:25:57 +08:00
1 parent 84f707b52b
commit d0159b49a5
759 files changed
+362365

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
module("luci.controller.nvr",package.seeall)
function index()
if not nixio.fs.access("/etc/config/nvr") then
return
end
local page = entry({"admin", "services", "nvr"}, cbi("nvr"), _("NVR"),20)
page.dependent = true
entry({"admin", "services", "nvr", "status"}, call("nvr_status")).leaf = true
end
function nvr_status()
local nvrrecord = luci.sys.exec("ps -w | grep nvrrecord | grep -v grep | awk '{print$1}' 2>/dev/null ")
local pushpid = luci.sys.exec("ps -w | grep 'f flv rtmp' | grep -v grep | awk '{print$1}' 2>/dev/null ")
local e = {
nvrrecord = nvrrecord,
pushpid = pushpid
}
luci.http.prepare_content("application/json")
luci.http.write_json(e)
end