summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-babeld/root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-babeld/root/usr')
-rw-r--r--applications/luci-app-babeld/root/usr/share/luci/menu.d/luci-app-babeld.json13
-rw-r--r--applications/luci-app-babeld/root/usr/share/rpcd/acl.d/luci-app-babeld.json11
2 files changed, 24 insertions, 0 deletions
diff --git a/applications/luci-app-babeld/root/usr/share/luci/menu.d/luci-app-babeld.json b/applications/luci-app-babeld/root/usr/share/luci/menu.d/luci-app-babeld.json
new file mode 100644
index 0000000000..8d0b010c21
--- /dev/null
+++ b/applications/luci-app-babeld/root/usr/share/luci/menu.d/luci-app-babeld.json
@@ -0,0 +1,13 @@
+{
+ "admin/status/babeld": {
+ "title": "Babeld",
+ "action": {
+ "type": "cbi",
+ "path": "babeld",
+ "post": { "cbi.submit": true }
+ },
+ "depends": {
+ "acl": [ "luci-app-babeld" ]
+ }
+ }
+}
diff --git a/applications/luci-app-babeld/root/usr/share/rpcd/acl.d/luci-app-babeld.json b/applications/luci-app-babeld/root/usr/share/rpcd/acl.d/luci-app-babeld.json
new file mode 100644
index 0000000000..51687bad5c
--- /dev/null
+++ b/applications/luci-app-babeld/root/usr/share/rpcd/acl.d/luci-app-babeld.json
@@ -0,0 +1,11 @@
+{
+ "luci-app-babeld": {
+ "description": "Grant UCI access for babeld",
+ "read": {
+ "uci": [ "babeld" ]
+ },
+ "write": {
+ "uci": [ "babeld" ]
+ }
+ }
+}