Rework LuCI build system
[project/luci.git] / applications / luci-app-dump1090 / root / etc / uci-defaults / luci-dump1090
diff --git a/applications/luci-app-dump1090/root/etc/uci-defaults/luci-dump1090 b/applications/luci-app-dump1090/root/etc/uci-defaults/luci-dump1090
new file mode 100644 (file)
index 0000000..4475d2f
--- /dev/null
@@ -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