Add initial luci-app-fwknopd - a way to control the firewall knock daemon from luci
[project/luci.git] / applications / luci-app-fwknopd / luasrc / controller / fwknopd.lua
1 -- Copyright 2015 Jonathan Bennett <jbennett@incomsystems.biz>
2 -- Licensed to the public under the GNU General Public License v2.
3
4 module("luci.controller.fwknopd", package.seeall)
5
6 function index()
7         if not nixio.fs.access("/etc/config/fwknopd") then
8                 return
9         end
10
11         local page
12
13         page = entry({"admin", "services", "fwknopd"}, cbi("fwknopd"), _("Firewall Knock Daemon"))
14         page.dependent = true
15 end