diff options
Diffstat (limited to 'applications/luci-app-rp-pppoe-server')
-rw-r--r-- | applications/luci-app-rp-pppoe-server/luasrc/controller/rp-pppoe-server.lua | 13 | ||||
-rw-r--r-- | applications/luci-app-rp-pppoe-server/root/usr/share/luci/menu.d/luci-app-rp-pppoe-server.json | 13 |
2 files changed, 13 insertions, 13 deletions
diff --git a/applications/luci-app-rp-pppoe-server/luasrc/controller/rp-pppoe-server.lua b/applications/luci-app-rp-pppoe-server/luasrc/controller/rp-pppoe-server.lua deleted file mode 100644 index 105a80e28d..0000000000 --- a/applications/luci-app-rp-pppoe-server/luasrc/controller/rp-pppoe-server.lua +++ /dev/null @@ -1,13 +0,0 @@ --- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com> --- Licensed to the public under the Apache License 2.0. - -module("luci.controller.rp-pppoe-server", package.seeall) - -function index() - if not nixio.fs.access("/etc/config/pppoe") then - return - end - - entry({"admin", "services", "rp-pppoe-server"}, cbi("rp-pppoe-server"), _("RP PPPoE Server")) -end - diff --git a/applications/luci-app-rp-pppoe-server/root/usr/share/luci/menu.d/luci-app-rp-pppoe-server.json b/applications/luci-app-rp-pppoe-server/root/usr/share/luci/menu.d/luci-app-rp-pppoe-server.json new file mode 100644 index 0000000000..2d964285a6 --- /dev/null +++ b/applications/luci-app-rp-pppoe-server/root/usr/share/luci/menu.d/luci-app-rp-pppoe-server.json @@ -0,0 +1,13 @@ +{ + "admin/services/rp-pppoe-server": { + "title": "RP PPPoE Server", + "action": { + "type": "cbi", + "path": "rp-pppoe-server", + "post": { "cbi.submit": true } + }, + "depends": { + "uci": { "pppoe": true } + } + } +} |