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>
LUCI_DESCRIPTION:=Luci interface for the SQM scripts queue management package
PKG_VERSION:=1.4.0
-PKG_RELEASE:=7
+PKG_RELEASE:=8
PKG_MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
--local ifaces = net:get_interfaces()
local ifaces = sys.net:devices()
local path = "/usr/lib/sqm"
-local run_path = "/tmp/run/sqm/available_qdiscs"
+local run_path = "/var/run/sqm/available_qdiscs"
m = Map("sqm", translate("Smart Queue Management"),
translate("With <abbr title=\"Smart Queue Management\">SQM</abbr> you " ..