From fd130d0ce7f52480ccc8bd600fb66de1b36fdbb9 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Fri, 8 May 2015 23:30:02 -0500 Subject: Add initial luci-app-fwknopd - a way to control the firewall knock daemon from luci Signed-off-by: Jonathan Bennett --- .../luci-app-fwknopd/luasrc/controller/fwknopd.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 applications/luci-app-fwknopd/luasrc/controller/fwknopd.lua (limited to 'applications/luci-app-fwknopd/luasrc/controller') diff --git a/applications/luci-app-fwknopd/luasrc/controller/fwknopd.lua b/applications/luci-app-fwknopd/luasrc/controller/fwknopd.lua new file mode 100644 index 0000000000..069a77ea3e --- /dev/null +++ b/applications/luci-app-fwknopd/luasrc/controller/fwknopd.lua @@ -0,0 +1,15 @@ +-- Copyright 2015 Jonathan Bennett +-- Licensed to the public under the GNU General Public License v2. + +module("luci.controller.fwknopd", package.seeall) + +function index() + if not nixio.fs.access("/etc/config/fwknopd") then + return + end + + local page + + page = entry({"admin", "services", "fwknopd"}, cbi("fwknopd"), _("Firewall Knock Daemon")) + page.dependent = true +end -- cgit v1.2.3