diff options
Diffstat (limited to 'applications/luci-app-ser2net')
-rw-r--r-- | applications/luci-app-ser2net/luasrc/controller/ser2net.lua | 12 | ||||
-rw-r--r-- | applications/luci-app-ser2net/root/usr/share/luci/menu.d/luci-app-ser2net.json | 38 |
2 files changed, 38 insertions, 12 deletions
diff --git a/applications/luci-app-ser2net/luasrc/controller/ser2net.lua b/applications/luci-app-ser2net/luasrc/controller/ser2net.lua deleted file mode 100644 index e29478a27b..0000000000 --- a/applications/luci-app-ser2net/luasrc/controller/ser2net.lua +++ /dev/null @@ -1,12 +0,0 @@ -module("luci.controller.ser2net", package.seeall) - -function index() - if not nixio.fs.access("/etc/config/ser2net") then - return - end - - entry({"admin", "services", "ser2net"}, firstchild(), "ser2net").dependent = true - entry({"admin", "services", "ser2net", "settings"}, view("ser2net/settings"), _("Settings"), 1).leaf = false - entry({"admin", "services", "ser2net", "proxies"}, view("ser2net/proxies"), _("Proxies"), 2).leaf = false - entry({"admin", "services", "ser2net", "leds"}, view("ser2net/leds"), _("LEDs"), 3).leaf = false -end diff --git a/applications/luci-app-ser2net/root/usr/share/luci/menu.d/luci-app-ser2net.json b/applications/luci-app-ser2net/root/usr/share/luci/menu.d/luci-app-ser2net.json new file mode 100644 index 0000000000..e05a30b935 --- /dev/null +++ b/applications/luci-app-ser2net/root/usr/share/luci/menu.d/luci-app-ser2net.json @@ -0,0 +1,38 @@ +{ + "admin/services/ser2net": { + "title": "ser2net", + "action": { + "type": "firstchild" + }, + "depends": { + "uci": { "ser2net": true } + } + }, + + "admin/services/ser2net/settings": { + "title": "Settings", + "order": 1, + "action": { + "type": "view", + "path": "ser2net/settings" + } + }, + + "admin/services/ser2net/proxies": { + "title": "Proxies", + "order": 2, + "action": { + "type": "view", + "path": "ser2net/proxies" + } + }, + + "admin/services/ser2net/leds": { + "title": "LEDs", + "order": 3, + "action": { + "type": "view", + "path": "ser2net/leds" + } + } +} |