summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-usteer/root/usr/share
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-usteer/root/usr/share')
-rw-r--r--applications/luci-app-usteer/root/usr/share/luci/menu.d/luci-app-usteer.json10
-rw-r--r--applications/luci-app-usteer/root/usr/share/rpcd/acl.d/luci-app-usteer.json21
2 files changed, 31 insertions, 0 deletions
diff --git a/applications/luci-app-usteer/root/usr/share/luci/menu.d/luci-app-usteer.json b/applications/luci-app-usteer/root/usr/share/luci/menu.d/luci-app-usteer.json
new file mode 100644
index 0000000000..39ce0ff9d7
--- /dev/null
+++ b/applications/luci-app-usteer/root/usr/share/luci/menu.d/luci-app-usteer.json
@@ -0,0 +1,10 @@
+{
+ "admin/network/usteer": {
+ "title": "Usteer",
+ "order": 80,
+ "action": {
+ "type": "view",
+ "path": "usteer/usteer"
+ }
+ }
+}
diff --git a/applications/luci-app-usteer/root/usr/share/rpcd/acl.d/luci-app-usteer.json b/applications/luci-app-usteer/root/usr/share/rpcd/acl.d/luci-app-usteer.json
new file mode 100644
index 0000000000..e5740f5155
--- /dev/null
+++ b/applications/luci-app-usteer/root/usr/share/rpcd/acl.d/luci-app-usteer.json
@@ -0,0 +1,21 @@
+{
+ "luci-app-usteer": {
+ "description": "Grant UCI access to LuCI app usteer",
+ "read": {
+ "ubus": {
+ "uci": [ "get" ],
+ "usteer": [ "remote_info","remote_hosts", "local_info", "get_clients"],
+ "luci-rpc": [ "getHostHints" ]
+ },
+ "uci": [
+ "usteer"
+ ]
+ },
+ "write": {
+ "ubus": {
+ "uci": [ "set", "commit" ]
+ },
+ "uci": [ "usteer" ]
+ }
+ }
+}