Merge pull request #278 from nmav/ocserv
[project/luci.git] / applications / luci-shairport / root / etc / uci-defaults / 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