SmartAudio/package/luci/luci-app-dump1090/root/etc/uci-defaults/40_luci-dump1090

13 lines
246 B
Bash

#!/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