summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-snmpd
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-snmpd')
-rw-r--r--applications/luci-app-snmpd/luasrc/controller/snmpd.lua5
-rw-r--r--applications/luci-app-snmpd/root/usr/share/luci/menu.d/luci-app-snmpd.json10
2 files changed, 10 insertions, 5 deletions
diff --git a/applications/luci-app-snmpd/luasrc/controller/snmpd.lua b/applications/luci-app-snmpd/luasrc/controller/snmpd.lua
deleted file mode 100644
index 71020747f0..0000000000
--- a/applications/luci-app-snmpd/luasrc/controller/snmpd.lua
+++ /dev/null
@@ -1,5 +0,0 @@
-module("luci.controller.snmpd", package.seeall)
-
-function index()
- entry({"admin", "services", "snmpd"}, cbi("snmpd"), "SNMPD")
-end
diff --git a/applications/luci-app-snmpd/root/usr/share/luci/menu.d/luci-app-snmpd.json b/applications/luci-app-snmpd/root/usr/share/luci/menu.d/luci-app-snmpd.json
new file mode 100644
index 0000000000..22d29c9f65
--- /dev/null
+++ b/applications/luci-app-snmpd/root/usr/share/luci/menu.d/luci-app-snmpd.json
@@ -0,0 +1,10 @@
+{
+ "admin/services/snmpd": {
+ "title": "SNMPD",
+ "action": {
+ "type": "cbi",
+ "path": "snmpd",
+ "post": { "cbi.submit": true }
+ }
+ }
+}