From 81b7e7d4a29980f2b12f36bde0dcb2f85c34fb47 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 11 Apr 2024 11:16:32 +0200 Subject: [PATCH] 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 --- .../luci-app-sqm/root/etc/uci-defaults/50-luci-sqm | 12 ------------ .../root/usr/share/ucitrack/luci-app-sqm.json | 7 +++++++ 2 files changed, 7 insertions(+), 12 deletions(-) delete mode 100755 applications/luci-app-sqm/root/etc/uci-defaults/50-luci-sqm create mode 100644 applications/luci-app-sqm/root/usr/share/ucitrack/luci-app-sqm.json 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" + ] +} -- 2.30.2