luci-app-watchcat: 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:41:49 +02:00
parent 5320d967f8
commit 0be7f9deb7
2 changed files with 4 additions and 10 deletions

View File

@@ -1,10 +0,0 @@
#!/bin/sh
uci -q batch <<-EOF >/dev/null
delete ucitrack.@watchcat[-1]
add ucitrack watchcat
set ucitrack.@watchcat[-1].init=watchcat
commit ucitrack
EOF
exit 0

View File

@@ -0,0 +1,4 @@
{
"config": "watchcat",
"init": "watchcat"
}