summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-polipo
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2024-04-11 11:19:32 +0200
committerFlorian Eckert <fe@dev.tdt.de>2024-04-11 16:15:52 +0200
commita8c45d9a0a8fb5c29af31942eb3975c943255383 (patch)
treec0fdc36d0a9bbdc361039439b4d29b3a47aed90b /applications/luci-app-polipo
parent81b7e7d4a29980f2b12f36bde0dcb2f85c34fb47 (diff)
luci-app-polipo: 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-polipo')
-rwxr-xr-xapplications/luci-app-polipo/root/etc/uci-defaults/40_luci-polipo10
-rw-r--r--applications/luci-app-polipo/root/usr/share/ucitrack/luci-app-polipo.json4
2 files changed, 4 insertions, 10 deletions
diff --git a/applications/luci-app-polipo/root/etc/uci-defaults/40_luci-polipo b/applications/luci-app-polipo/root/etc/uci-defaults/40_luci-polipo
deleted file mode 100755
index 60af421389..0000000000
--- a/applications/luci-app-polipo/root/etc/uci-defaults/40_luci-polipo
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@polipo[-1]
- add ucitrack polipo
- set ucitrack.@polipo[-1].init=polipo
- commit ucitrack
-EOF
-
-exit 0
diff --git a/applications/luci-app-polipo/root/usr/share/ucitrack/luci-app-polipo.json b/applications/luci-app-polipo/root/usr/share/ucitrack/luci-app-polipo.json
new file mode 100644
index 0000000000..a68a368034
--- /dev/null
+++ b/applications/luci-app-polipo/root/usr/share/ucitrack/luci-app-polipo.json
@@ -0,0 +1,4 @@
+{
+ "config": "polipo",
+ "init": "polipo"
+}