From a33be327312ee5fd0981be65001074e72a7f3d81 Mon Sep 17 00:00:00 2001 From: Álvaro Fernández Rojas Date: Tue, 28 Oct 2014 16:29:29 +0100 Subject: applications/luci-shairplay: add new package. This adds support for configuring shairplay. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- .../luci-shairplay/root/etc/uci-defaults/luci-shairplay | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 applications/luci-shairplay/root/etc/uci-defaults/luci-shairplay (limited to 'applications/luci-shairplay/root/etc') diff --git a/applications/luci-shairplay/root/etc/uci-defaults/luci-shairplay b/applications/luci-shairplay/root/etc/uci-defaults/luci-shairplay new file mode 100644 index 0000000000..efc8a89bb0 --- /dev/null +++ b/applications/luci-shairplay/root/etc/uci-defaults/luci-shairplay @@ -0,0 +1,12 @@ +#!/bin/sh + +# needed for "Save and Apply" to restart shairplay +uci -q batch <<-EOF >/dev/null + delete ucitrack.@shairplay[-1] + add ucitrack shairplay + set ucitrack.@shairplay[-1].init="shairplay" + commit ucitrack +EOF + +rm -f /tmp/luci-indexcache +exit 0 -- cgit v1.2.3