immortalwrt/package/lean/luci-app-guest-wifi/luasrc/controller/guest-wifi.lua
2019-09-30 13:52:50 +08:00

15 lines
354 B
Lua

module("luci.controller.guest-wifi", package.seeall)
function index()
require("luci.i18n")
luci.i18n.loadc("guest-wifi")
if not nixio.fs.access("/etc/config/guest-wifi") then
return
end
local page = entry({"admin", "network", "guest-wifi"}, cbi("guest-wifi"), translate("Guest-wifi"), 19)
page.i18n = "guest-wifi"
page.dependent = true
end