From ad7ef75a846e645ac522b45542740ece0811dca7 Mon Sep 17 00:00:00 2001 From: Álvaro Fernández Rojas Date: Tue, 28 Oct 2014 19:38:21 +0100 Subject: applications/luci-dump1090: add new package. This adds support for configuring dump1090. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- .../luci-dump1090/root/etc/uci-defaults/luci-dump1090 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 applications/luci-dump1090/root/etc/uci-defaults/luci-dump1090 (limited to 'applications/luci-dump1090/root') 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 -- cgit v1.2.3