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 <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2024-04-11 11:16:32 +02:00
parent 6240628280
commit 81b7e7d4a2
2 changed files with 7 additions and 12 deletions

View File

@ -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

View File

@ -0,0 +1,7 @@
{
"config": "sqm",
"init": "sqm",
"affects": [
"sqm"
]
}