summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2024-04-11 11:41:49 +0200
committerFlorian Eckert <fe@dev.tdt.de>2024-04-11 16:15:52 +0200
commit0be7f9deb7da12a88140785bdeafae5ea9ac2398 (patch)
treec78ec06a02293336da6260464053687cb34c5bf3
parent5320d967f87e1623386b3c0826bbdd09ac1595a6 (diff)
luci-app-watchcat: 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>
-rw-r--r--applications/luci-app-watchcat/root/etc/uci-defaults/40_luci-watchcat10
-rw-r--r--applications/luci-app-watchcat/root/usr/share/ucitrack/luci-app-watchcat.json4
2 files changed, 4 insertions, 10 deletions
diff --git a/applications/luci-app-watchcat/root/etc/uci-defaults/40_luci-watchcat b/applications/luci-app-watchcat/root/etc/uci-defaults/40_luci-watchcat
deleted file mode 100644
index 02a7f09783..0000000000
--- a/applications/luci-app-watchcat/root/etc/uci-defaults/40_luci-watchcat
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@watchcat[-1]
- add ucitrack watchcat
- set ucitrack.@watchcat[-1].init=watchcat
- commit ucitrack
-EOF
-
-exit 0
diff --git a/applications/luci-app-watchcat/root/usr/share/ucitrack/luci-app-watchcat.json b/applications/luci-app-watchcat/root/usr/share/ucitrack/luci-app-watchcat.json
new file mode 100644
index 0000000000..616dd1fb79
--- /dev/null
+++ b/applications/luci-app-watchcat/root/usr/share/ucitrack/luci-app-watchcat.json
@@ -0,0 +1,4 @@
+{
+ "config": "watchcat",
+ "init": "watchcat"
+}