40_luci-dump1090 246 B

123456789101112
  1. #!/bin/sh
  2. # needed for "Save and Apply" to restart dump1090
  3. uci -q batch <<-EOF >/dev/null
  4. delete ucitrack.@dump1090[-1]
  5. add ucitrack dump1090
  6. set ucitrack.@dump1090[-1].init="dump1090"
  7. commit ucitrack
  8. EOF
  9. rm -f /tmp/luci-indexcache
  10. exit 0