diff options
author | Toke Høiland-Jørgensen <toke@toke.dk> | 2020-04-08 23:01:31 +0200 |
---|---|---|
committer | Toke Høiland-Jørgensen <toke@toke.dk> | 2020-04-08 23:01:31 +0200 |
commit | 88ec332e074dc510d9966e75059e16bf0c794d38 (patch) | |
tree | 16af93f7ff6960a0ae9b9c1c132cf8e986c4d233 /applications/luci-app-sqm/luasrc/model/cbi | |
parent | 53eae2207cbab0d21253ef0263bc5b90c4e403d5 (diff) |
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>
Diffstat (limited to 'applications/luci-app-sqm/luasrc/model/cbi')
-rw-r--r-- | applications/luci-app-sqm/luasrc/model/cbi/sqm.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-sqm/luasrc/model/cbi/sqm.lua b/applications/luci-app-sqm/luasrc/model/cbi/sqm.lua index f16b4e6ab3..f6cdaca8af 100644 --- a/applications/luci-app-sqm/luasrc/model/cbi/sqm.lua +++ b/applications/luci-app-sqm/luasrc/model/cbi/sqm.lua @@ -20,7 +20,7 @@ local sys = require "luci.sys" --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 " .. |