luci-app-sqm: Fix run path
authorToke Høiland-Jørgensen <toke@toke.dk>
Wed, 8 Apr 2020 21:01:31 +0000 (23:01 +0200)
committerToke Høiland-Jørgensen <toke@toke.dk>
Wed, 8 Apr 2020 21:01:31 +0000 (23:01 +0200)
commit88ec332e074dc510d9966e75059e16bf0c794d38
tree16af93f7ff6960a0ae9b9c1c132cf8e986c4d233
parent53eae2207cbab0d21253ef0263bc5b90c4e403d5
luci-app-sqm: Fix run path

luci-app-sqm was using the wrong path to look for the available_qdiscs
file. This happened to work because by default /var is symlinked to /tmp on
OpenWrt. However, it breaks badly when this is not the case, and the
sqm.conf file for OpenWrt uses /var/run anyway, so update the luci code to
do this as well.

Fixes #3860.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
applications/luci-app-sqm/Makefile
applications/luci-app-sqm/luasrc/model/cbi/sqm.lua