diff options
Diffstat (limited to 'applications/luci-app-fwknopd')
-rw-r--r-- | applications/luci-app-fwknopd/luasrc/controller/fwknopd.lua | 15 | ||||
-rw-r--r-- | applications/luci-app-fwknopd/root/usr/share/luci/menu.d/luci-app-fwknopd.json | 13 |
2 files changed, 13 insertions, 15 deletions
diff --git a/applications/luci-app-fwknopd/luasrc/controller/fwknopd.lua b/applications/luci-app-fwknopd/luasrc/controller/fwknopd.lua deleted file mode 100644 index 069a77ea3e..0000000000 --- a/applications/luci-app-fwknopd/luasrc/controller/fwknopd.lua +++ /dev/null @@ -1,15 +0,0 @@ --- 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 diff --git a/applications/luci-app-fwknopd/root/usr/share/luci/menu.d/luci-app-fwknopd.json b/applications/luci-app-fwknopd/root/usr/share/luci/menu.d/luci-app-fwknopd.json new file mode 100644 index 0000000000..6dd26b9ac8 --- /dev/null +++ b/applications/luci-app-fwknopd/root/usr/share/luci/menu.d/luci-app-fwknopd.json @@ -0,0 +1,13 @@ +{ + "admin/services/fwknopd": { + "title": "Firewall Knock Daemon", + "action": { + "type": "cbi", + "path": "fwknopd", + "post": { "cbi.submit": true } + }, + "depends": { + "uci": { "fwknopd": true } + } + } +} |