summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-dump1090/root/etc/uci-defaults
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2014-10-28 19:38:21 +0100
committerÁlvaro Fernández Rojas <noltari@gmail.com>2014-10-28 19:38:21 +0100
commitad7ef75a846e645ac522b45542740ece0811dca7 (patch)
treec898892be90b1627ea7bbe534c26975838849816 /applications/luci-dump1090/root/etc/uci-defaults
parent2826426c6a518867d695f05e514e41703deac3a1 (diff)
applications/luci-dump1090: add new package.
This adds support for configuring dump1090. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'applications/luci-dump1090/root/etc/uci-defaults')
-rw-r--r--applications/luci-dump1090/root/etc/uci-defaults/luci-dump109012
1 files changed, 12 insertions, 0 deletions
diff --git a/applications/luci-dump1090/root/etc/uci-defaults/luci-dump1090 b/applications/luci-dump1090/root/etc/uci-defaults/luci-dump1090
new file mode 100644
index 0000000000..4475d2fb93
--- /dev/null
+++ b/applications/luci-dump1090/root/etc/uci-defaults/luci-dump1090
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# needed for "Save and Apply" to restart dump1090
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@dump1090[-1]
+ add ucitrack dump1090
+ set ucitrack.@dump1090[-1].init="dump1090"
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0