luci-shairport 251 B

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