mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-09-15 12:54:09 +08:00
15 lines
327 B
Lua
15 lines
327 B
Lua
local nfs = require "nixio.fs"
|
|
local config = "fwx_record"
|
|
|
|
if nfs.access("/etc/config/appfilter") then
|
|
config = "appfilter"
|
|
elseif nfs.access("/etc/config/macfilter") then
|
|
config = "macfilter"
|
|
end
|
|
|
|
local m = Map(config, translate(""), translate(""))
|
|
local s = m:section(SimpleSection)
|
|
|
|
s.template = "oaf/whitelist"
|
|
|
|
return m |