fix(luci): running status

This commit is contained in:
SunBK201 2023-12-30 01:31:17 +08:00
parent 96ff6e098e
commit 0f977a94ec

View File

@ -18,9 +18,9 @@ status.rawhtml = true
status.cfgvalue = function(self, section) status.cfgvalue = function(self, section)
local pid = luci.sys.exec("pidof ua3f") local pid = luci.sys.exec("pidof ua3f")
if pid == "" then if pid == "" then
return "<span style='color:green'>" .. translate("Running") .. "</span>"
else
return "<span style='color:red'>" .. translate("Stopped") .. "</span>" return "<span style='color:red'>" .. translate("Stopped") .. "</span>"
else
return "<span style='color:green'>" .. translate("Running") .. "</span>"
end end
end end