luci-app-olsr: 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:31:36 +02:00
parent a8c45d9a0a
commit 9909aa42a3
3 changed files with 8 additions and 13 deletions

View File

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

View File

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

View File

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