summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-shairplay/root
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2014-10-28 16:29:29 +0100
committerÁlvaro Fernández Rojas <noltari@gmail.com>2014-10-28 16:29:29 +0100
commita33be327312ee5fd0981be65001074e72a7f3d81 (patch)
treefcd90e7fc10200867ff6235575f7343e5c0b67cd /applications/luci-shairplay/root
parent2826426c6a518867d695f05e514e41703deac3a1 (diff)
applications/luci-shairplay: add new package.
This adds support for configuring shairplay. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'applications/luci-shairplay/root')
-rw-r--r--applications/luci-shairplay/root/etc/uci-defaults/luci-shairplay12
1 files changed, 12 insertions, 0 deletions
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