From 8eaac4b637d989680ad86dc3e84b0f3b547c1619 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 27 Jan 2016 16:47:23 +0100 Subject: Use numeric prefixes for uci-defaults scripts Signed-off-by: Jo-Philipp Wich --- .../root/etc/uci-defaults/40_luci-shairport | 12 ++++++++++++ .../luci-app-shairport/root/etc/uci-defaults/luci-shairport | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 applications/luci-app-shairport/root/etc/uci-defaults/40_luci-shairport delete mode 100644 applications/luci-app-shairport/root/etc/uci-defaults/luci-shairport (limited to 'applications/luci-app-shairport/root/etc/uci-defaults') diff --git a/applications/luci-app-shairport/root/etc/uci-defaults/40_luci-shairport b/applications/luci-app-shairport/root/etc/uci-defaults/40_luci-shairport new file mode 100644 index 0000000000..be9412bac8 --- /dev/null +++ b/applications/luci-app-shairport/root/etc/uci-defaults/40_luci-shairport @@ -0,0 +1,12 @@ +#!/bin/sh + +# needed for "Save and Apply" to restart shairport +uci -q batch <<-EOF >/dev/null + delete ucitrack.@shairport[-1] + add ucitrack shairport + set ucitrack.@shairport[-1].init="shairport" + commit ucitrack +EOF + +rm -f /tmp/luci-indexcache +exit 0 diff --git a/applications/luci-app-shairport/root/etc/uci-defaults/luci-shairport b/applications/luci-app-shairport/root/etc/uci-defaults/luci-shairport deleted file mode 100644 index be9412bac8..0000000000 --- a/applications/luci-app-shairport/root/etc/uci-defaults/luci-shairport +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -# needed for "Save and Apply" to restart shairport -uci -q batch <<-EOF >/dev/null - delete ucitrack.@shairport[-1] - add ucitrack shairport - set ucitrack.@shairport[-1].init="shairport" - commit ucitrack -EOF - -rm -f /tmp/luci-indexcache -exit 0 -- cgit v1.2.3