diff options
author | Jonathan Bennett <JBennett@incomsystems.biz> | 2015-05-08 23:30:02 -0500 |
---|---|---|
committer | Jonathan Bennett <JBennett@incomsystems.biz> | 2015-05-12 21:10:00 -0500 |
commit | fd130d0ce7f52480ccc8bd600fb66de1b36fdbb9 (patch) | |
tree | 2567c81a1158f40f2163b748a9521485dd8d5120 /applications/luci-app-fwknopd/luasrc/controller/fwknopd.lua | |
parent | cc99288242be3e0fe60b61b83bebe272222560c5 (diff) |
Add initial luci-app-fwknopd - a way to control the firewall knock daemon from luci
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
Diffstat (limited to 'applications/luci-app-fwknopd/luasrc/controller/fwknopd.lua')
-rw-r--r-- | applications/luci-app-fwknopd/luasrc/controller/fwknopd.lua | 15 |
1 files changed, 15 insertions, 0 deletions
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 <jbennett@incomsystems.biz> +-- 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 |