immortalwrt/package/jsda/luci-app-smartdns/luasrc/controller/smartdns.lua

15 lines
310 B
Lua
Raw Normal View History

2019-07-02 18:06:49 +08:00
-- Copyright 2018 Nick Peng (pymumu@gmail.com)
module("luci.controller.smartdns", package.seeall)
function index()
if not nixio.fs.access("/etc/config/smartdns") then
return
end
local page
page = entry({"admin", "services", "smartdns"}, cbi("smartdns"), _("SmartDNS"), 60)
page.dependent = true
end