luci-app-libreswan: upgrade uci-defaults for ucitrack handling to use json
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 11 Apr 2024 09:44:38 +0000 (11:44 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 11 Apr 2024 14:15:52 +0000 (16:15 +0200)
Conversion of the 'uci-defaults' script for ucitrack handling to the new
json processing.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-libreswan/root/etc/uci-defaults/802-luci-app-libreswan [deleted file]
applications/luci-app-libreswan/root/usr/share/ucitrack/luci-app-libreswan.json [new file with mode: 0644]

diff --git a/applications/luci-app-libreswan/root/etc/uci-defaults/802-luci-app-libreswan b/applications/luci-app-libreswan/root/etc/uci-defaults/802-luci-app-libreswan
deleted file mode 100644 (file)
index 6383335..0000000
+++ /dev/null
@@ -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
diff --git a/applications/luci-app-libreswan/root/usr/share/ucitrack/luci-app-libreswan.json b/applications/luci-app-libreswan/root/usr/share/ucitrack/luci-app-libreswan.json
new file mode 100644 (file)
index 0000000..5bfe1e9
--- /dev/null
@@ -0,0 +1,4 @@
+{
+       "config": "libreswan",
+       "init": "ipsec"
+}