summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-olsr/root
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2024-04-11 11:31:36 +0200
committerFlorian Eckert <fe@dev.tdt.de>2024-04-11 16:15:52 +0200
commit9909aa42a364e54963ea0dc1239fc8d8651fa728 (patch)
treec55e56cef88f0812c1181e49a494c2028823fe24 /applications/luci-app-olsr/root
parenta8c45d9a0a8fb5c29af31942eb3975c943255383 (diff)
luci-app-olsr: 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-olsr/root')
-rwxr-xr-xapplications/luci-app-olsr/root/etc/uci-defaults/40_luci-olsr13
-rw-r--r--applications/luci-app-olsr/root/usr/share/ucitrack/luci-app-olsr.json4
-rw-r--r--applications/luci-app-olsr/root/usr/share/ucitrack/luci-app-olsr6.json4
3 files changed, 8 insertions, 13 deletions
diff --git a/applications/luci-app-olsr/root/etc/uci-defaults/40_luci-olsr b/applications/luci-app-olsr/root/etc/uci-defaults/40_luci-olsr
deleted file mode 100755
index a941abd54c..0000000000
--- a/applications/luci-app-olsr/root/etc/uci-defaults/40_luci-olsr
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@olsrd[-1]
- add ucitrack olsrd
- set ucitrack.@olsrd[-1].init=olsrd
- delete ucitrack.@olsrd6[-1]
- add ucitrack olsrd6
- set ucitrack.@olsrd6[-1].init=olsrd6
- commit ucitrack
-EOF
-
-exit 0
diff --git a/applications/luci-app-olsr/root/usr/share/ucitrack/luci-app-olsr.json b/applications/luci-app-olsr/root/usr/share/ucitrack/luci-app-olsr.json
new file mode 100644
index 0000000000..e98139f68d
--- /dev/null
+++ b/applications/luci-app-olsr/root/usr/share/ucitrack/luci-app-olsr.json
@@ -0,0 +1,4 @@
+{
+ "config": "olsrd",
+ "init": "olsrd"
+}
diff --git a/applications/luci-app-olsr/root/usr/share/ucitrack/luci-app-olsr6.json b/applications/luci-app-olsr/root/usr/share/ucitrack/luci-app-olsr6.json
new file mode 100644
index 0000000000..5b4960110f
--- /dev/null
+++ b/applications/luci-app-olsr/root/usr/share/ucitrack/luci-app-olsr6.json
@@ -0,0 +1,4 @@
+{
+ "config": "olsrd6",
+ "init": "olsrd6"
+}