mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-17 09:16:41 +00:00
fix(luci): running status
This commit is contained in:
parent
96ff6e098e
commit
0f977a94ec
@ -18,9 +18,9 @@ status.rawhtml = true
|
||||
status.cfgvalue = function(self, section)
|
||||
local pid = luci.sys.exec("pidof ua3f")
|
||||
if pid == "" then
|
||||
return "<span style='color:green'>" .. translate("Running") .. "</span>"
|
||||
else
|
||||
return "<span style='color:red'>" .. translate("Stopped") .. "</span>"
|
||||
else
|
||||
return "<span style='color:green'>" .. translate("Running") .. "</span>"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user