luci-app-libreswan: 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:44:38 +02:00
parent 0be7f9deb7
commit dd0aa936a5
2 changed files with 4 additions and 8 deletions

View File

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

View File

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