summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-sqm/root
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2021-06-05 09:43:46 +0200
committerDirk Brenken <dev@brenken.org>2021-06-09 22:36:32 +0200
commite76d9cc7673ffbebd8887bcfc14542c1269288e0 (patch)
tree0d5a93ed8aeacb5d73fab3b582ef06142512a1dc /applications/luci-app-sqm/root
parent1bfeec69948c4743ec61f0778919f14643844bd5 (diff)
luci-app-sqm: fix JS error if service is disabled
* fix a 'resource not found error' if the sqm service has been disabled and the dir '/var/run/sqm/available_qdiscs' not exist * inform the user about this issue and provide a button to enable & start the service Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-sqm/root')
-rw-r--r--applications/luci-app-sqm/root/usr/share/rpcd/acl.d/luci-app-sqm.json4
1 files changed, 3 insertions, 1 deletions
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 2b56b1fc78..13c702449f 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
@@ -4,7 +4,9 @@
"read": {
"file": {
"/var/run/sqm/available_qdiscs": [ "list" ],
- "/usr/lib/sqm/*.qos.help": [ "read" ]
+ "/usr/lib/sqm/*.qos.help": [ "read" ],
+ "/etc/init.d/sqm enable" : [ "exec" ],
+ "/etc/init.d/sqm start" : [ "exec" ]
},
"uci": [ "sqm" ],
"ubus": {