🎁 Sync 2026-08-05 20:25:34

This commit is contained in:
github-actions[bot] committed 2026-08-05 20:25:34 +08:00
1 parent e71d910024
commit ca3fdb1643
31 files changed
+374 -113

No files matched your search

@@ -15,7 +15,7 @@ end
function act_status()
local e = {}
e.running = luci.sys.call("iptables -L INPUT |grep MIAPLUS >/dev/null") == 0
e.running = luci.sys.call("iptables -t filter -S MIAPLUS >/dev/null 2>&1") == 0
luci.http.prepare_content("application/json")
luci.http.write_json(e)
end
@@ -1,6 +1,10 @@
local ds = require "luci.dispatcher"
a = Map("miaplus")
a.apply_on_parse = true
function a.on_apply(self)
luci.sys.call("/etc/init.d/miaplus restart >/dev/null 2>&1 &")
end
t = a:section(TypedSection, "templates")
t.template = "cbi/tblsection"
@@ -3,6 +3,10 @@ local uci = luci.model.uci.cursor()
a = Map("miaplus")
a.title = translate("Internet Access Schedule Control Plus")
a.description = translate("Access Schedule Control Description")
a.apply_on_parse = true
function a.on_apply(self)
luci.sys.call("/etc/init.d/miaplus restart >/dev/null 2>&1 &")
end
a:section(SimpleSection).template = "miaplus/miaplus_status"
@@ -1,4 +1,8 @@
a = Map("miaplus")
a.apply_on_parse = true
function a.on_apply(self)
luci.sys.call("/etc/init.d/miaplus restart >/dev/null 2>&1 &")
end
local section = arg[1]