mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-29 13:55:13 +08:00
update 2026-08-04 21:57:50
This commit is contained in:
1 parent
3021446ff0
commit
1b4882dcca
2001 files changed
+477
-1523157
No files matched your search
@@ -15,10 +15,12 @@ end
|
||||
function kaiplus_status()
|
||||
local sys = require "luci.sys"
|
||||
local uci = require "luci.model.uci".cursor()
|
||||
local port = uci:get_first("kaiplus", "kaiplus", "port", "8198")
|
||||
local port = uci:get_first("kaiplus", "kaiplus", "port", "8189")
|
||||
local base_path = uci:get_first("kaiplus", "kaiplus", "base_path", "/apps/kaiplus/")
|
||||
local status = {
|
||||
running = (sys.call("pidof kaiplus_bin >/dev/null") == 0),
|
||||
port = port
|
||||
port = port,
|
||||
base_path = base_path
|
||||
}
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json(status)
|
||||
|
||||
Reference in new issue
Block a user