summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-libreswan
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2024-04-11 11:44:38 +0200
committerFlorian Eckert <fe@dev.tdt.de>2024-04-11 16:15:52 +0200
commitdd0aa936a5c50e4929f87221ef67ac739ef73b8d (patch)
treee40327bb11629bae863ea36d8c730210f4ad3c87 /applications/luci-app-libreswan
parent0be7f9deb7da12a88140785bdeafae5ea9ac2398 (diff)
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>
Diffstat (limited to 'applications/luci-app-libreswan')
-rw-r--r--applications/luci-app-libreswan/root/etc/uci-defaults/802-luci-app-libreswan8
-rw-r--r--applications/luci-app-libreswan/root/usr/share/ucitrack/luci-app-libreswan.json4
2 files changed, 4 insertions, 8 deletions
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
index 6383335666..0000000000
--- a/applications/luci-app-libreswan/root/etc/uci-defaults/802-luci-app-libreswan
+++ /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
index 0000000000..5bfe1e9d4b
--- /dev/null
+++ b/applications/luci-app-libreswan/root/usr/share/ucitrack/luci-app-libreswan.json
@@ -0,0 +1,4 @@
+{
+ "config": "libreswan",
+ "init": "ipsec"
+}