diff options
author | Paul Donald <newtwen+github@gmail.com> | 2024-10-07 22:18:04 +0200 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-10-07 22:30:23 +0200 |
commit | 3aa60877ea4bc47b86c3ee11448db7503a20ae01 (patch) | |
tree | fb55393ce71aedee0ca458e05574936b9ff7eba0 /applications/luci-app-rp-pppoe-server/root | |
parent | 25a4d075558af1effcb1539e6d6920a6ff198821 (diff) |
luci-app-rp-pppoe-server: convert to JS
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Diffstat (limited to 'applications/luci-app-rp-pppoe-server/root')
2 files changed, 14 insertions, 4 deletions
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 index b58ab6394e..a3d2717290 100644 --- 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 @@ -2,9 +2,19 @@ "admin/services/rp-pppoe-server": { "title": "RP PPPoE Server", "action": { - "type": "cbi", - "path": "rp-pppoe-server", - "post": { "cbi.submit": true } + "type": "view", + "path": "pppoe/rp-pppoe-server" + }, + "depends": { + "acl": [ "luci-app-rp-pppoe-server" ], + "uci": { "pppoe": true } + } + }, + "admin/services/rp-pppoe-relay": { + "title": "RP PPPoE Relay", + "action": { + "type": "view", + "path": "pppoe/rp-pppoe-relay" }, "depends": { "acl": [ "luci-app-rp-pppoe-server" ], diff --git a/applications/luci-app-rp-pppoe-server/root/usr/share/rpcd/acl.d/luci-app-rp-pppoe-server.json b/applications/luci-app-rp-pppoe-server/root/usr/share/rpcd/acl.d/luci-app-rp-pppoe-server.json index 904faac7c6..9ca677e245 100644 --- a/applications/luci-app-rp-pppoe-server/root/usr/share/rpcd/acl.d/luci-app-rp-pppoe-server.json +++ b/applications/luci-app-rp-pppoe-server/root/usr/share/rpcd/acl.d/luci-app-rp-pppoe-server.json @@ -2,7 +2,7 @@ "luci-app-rp-pppoe-server": { "description": "Grant UCI access for luci-app-rp-pppoe-server", "read": { - "uci": [ "pppoe" ] + "uci": [ "pppoe", "network" ] }, "write": { "uci": [ "pppoe" ] |