From: Florian Eckert Date: Thu, 11 Apr 2024 09:16:32 +0000 (+0200) Subject: luci-app-sqm: upgrade uci-defaults for ucitrack handling to use json X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=81b7e7d4a29980f2b12f36bde0dcb2f85c34fb47;p=project%2Fluci.git luci-app-sqm: upgrade uci-defaults for ucitrack handling to use json Conversion of the 'uci-defaults' script for ucitrack handling to the new json processing. Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-sqm/root/etc/uci-defaults/50-luci-sqm b/applications/luci-app-sqm/root/etc/uci-defaults/50-luci-sqm deleted file mode 100755 index b3aa47c6da..0000000000 --- a/applications/luci-app-sqm/root/etc/uci-defaults/50-luci-sqm +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -uci -q batch <<-EOF >/dev/null - delete ucitrack.@sqm[-1] - add ucitrack sqm - set ucitrack.@sqm[-1].init=sqm - del_list ucitrack.@firewall[0].affects=sqm - add_list ucitrack.@firewall[0].affects=sqm - commit ucitrack -EOF - -exit 0 diff --git a/applications/luci-app-sqm/root/usr/share/ucitrack/luci-app-sqm.json b/applications/luci-app-sqm/root/usr/share/ucitrack/luci-app-sqm.json new file mode 100644 index 0000000000..ea72acf226 --- /dev/null +++ b/applications/luci-app-sqm/root/usr/share/ucitrack/luci-app-sqm.json @@ -0,0 +1,7 @@ +{ + "config": "sqm", + "init": "sqm", + "affects": [ + "sqm" + ] +}