diff options
Diffstat (limited to 'applications/luci-app-sqm/root')
-rw-r--r-- | applications/luci-app-sqm/root/usr/share/luci/menu.d/luci-app-sqm.json | 13 | ||||
-rw-r--r-- | applications/luci-app-sqm/root/usr/share/rpcd/acl.d/luci-app-sqm.json | 10 |
2 files changed, 22 insertions, 1 deletions
diff --git a/applications/luci-app-sqm/root/usr/share/luci/menu.d/luci-app-sqm.json b/applications/luci-app-sqm/root/usr/share/luci/menu.d/luci-app-sqm.json new file mode 100644 index 0000000000..6c5ff4fa62 --- /dev/null +++ b/applications/luci-app-sqm/root/usr/share/luci/menu.d/luci-app-sqm.json @@ -0,0 +1,13 @@ +{ + "admin/network/sqm": { + "title": "SQM QoS", + "order": 59, + "action": { + "type": "view", + "path": "network/sqm" + }, + "depends": { + "acl": [ "luci-app-sqm" ] + } + } +} diff --git a/applications/luci-app-sqm/root/usr/share/rpcd/acl.d/luci-app-sqm.json b/applications/luci-app-sqm/root/usr/share/rpcd/acl.d/luci-app-sqm.json index 583a54ae5a..2b56b1fc78 100644 --- a/applications/luci-app-sqm/root/usr/share/rpcd/acl.d/luci-app-sqm.json +++ b/applications/luci-app-sqm/root/usr/share/rpcd/acl.d/luci-app-sqm.json @@ -2,7 +2,15 @@ "luci-app-sqm": { "description": "Grant UCI access for luci-app-sqm", "read": { - "uci": [ "sqm" ] + "file": { + "/var/run/sqm/available_qdiscs": [ "list" ], + "/usr/lib/sqm/*.qos.help": [ "read" ] + }, + "uci": [ "sqm" ], + "ubus": { + "file": [ "read", "list" ], + "luci": [ "setInitAction" ] + } }, "write": { "uci": [ "sqm" ] |