summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-asterisk/root/etc/uci-defaults/40_luci-asterisk
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2016-01-27 16:47:23 +0100
committerJo-Philipp Wich <jow@openwrt.org>2016-01-27 16:50:19 +0100
commit8eaac4b637d989680ad86dc3e84b0f3b547c1619 (patch)
treefbc6aa60f12e0ab8624448efcd29daa62e099314 /applications/luci-app-asterisk/root/etc/uci-defaults/40_luci-asterisk
parent445ae20db8812bcff3e4c0e32859ea1d3d5fbe4b (diff)
Use numeric prefixes for uci-defaults scripts
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'applications/luci-app-asterisk/root/etc/uci-defaults/40_luci-asterisk')
-rwxr-xr-xapplications/luci-app-asterisk/root/etc/uci-defaults/40_luci-asterisk11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-asterisk/root/etc/uci-defaults/40_luci-asterisk b/applications/luci-app-asterisk/root/etc/uci-defaults/40_luci-asterisk
new file mode 100755
index 0000000000..e45819f602
--- /dev/null
+++ b/applications/luci-app-asterisk/root/etc/uci-defaults/40_luci-asterisk
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@asterisk[-1]
+ add ucitrack asterisk
+ set ucitrack.@asterisk[-1].init=asterisk
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0