diff options
Diffstat (limited to 'applications/luci-dump1090/root/etc/uci-defaults')
-rw-r--r-- | applications/luci-dump1090/root/etc/uci-defaults/luci-dump1090 | 12 |
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 |