Use numeric prefixes for uci-defaults scripts
[project/luci.git] / applications / luci-app-shairport / root / etc / uci-defaults / 40_luci-shairport
1 #!/bin/sh
2
3 # needed for "Save and Apply" to restart shairport
4 uci -q batch <<-EOF >/dev/null
5         delete ucitrack.@shairport[-1]
6         add ucitrack shairport
7         set ucitrack.@shairport[-1].init="shairport"
8         commit ucitrack
9 EOF
10
11 rm -f /tmp/luci-indexcache
12 exit 0