From 88ec332e074dc510d9966e75059e16bf0c794d38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= Date: Wed, 8 Apr 2020 23:01:31 +0200 Subject: [PATCH] luci-app-sqm: Fix run path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- applications/luci-app-sqm/Makefile | 2 +- applications/luci-app-sqm/luasrc/model/cbi/sqm.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/luci-app-sqm/Makefile b/applications/luci-app-sqm/Makefile index 77c0f8d2e..ab2ec47f7 100644 --- a/applications/luci-app-sqm/Makefile +++ b/applications/luci-app-sqm/Makefile @@ -7,7 +7,7 @@ LUCI_TITLE:=LuCI Support for SQM Scripts 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 diff --git a/applications/luci-app-sqm/luasrc/model/cbi/sqm.lua b/applications/luci-app-sqm/luasrc/model/cbi/sqm.lua index f16b4e6ab..f6cdaca8a 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 SQM you " .. -- 2.25.1