luci-app-p910nd: upgrade uci-defaults for ucitrack handling to use json
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 11 Apr 2024 09:46:52 +0000 (11:46 +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-p910nd/root/etc/uci-defaults/40_luci-p910nd [deleted file]
applications/luci-app-p910nd/root/usr/share/ucitrack/luci-app-p910nd.json [new file with mode: 0644]

diff --git a/applications/luci-app-p910nd/root/etc/uci-defaults/40_luci-p910nd b/applications/luci-app-p910nd/root/etc/uci-defaults/40_luci-p910nd
deleted file mode 100755 (executable)
index d1b629f..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
-       delete ucitrack.@p910nd[-1]
-       add ucitrack p910nd
-       set ucitrack.@p910nd[-1].init=p910nd
-       commit ucitrack
-EOF
-
-exit 0
diff --git a/applications/luci-app-p910nd/root/usr/share/ucitrack/luci-app-p910nd.json b/applications/luci-app-p910nd/root/usr/share/ucitrack/luci-app-p910nd.json
new file mode 100644 (file)
index 0000000..4cf7c53
--- /dev/null
@@ -0,0 +1,4 @@
+{
+       "config": "p910nd",
+       "init": "p910nd"
+}