summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-asterisk/root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-asterisk/root/etc')
-rwxr-xr-x[-rw-r--r--]applications/luci-asterisk/root/etc/uci-defaults/luci-asterisk6
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/luci-asterisk/root/etc/uci-defaults/luci-asterisk b/applications/luci-asterisk/root/etc/uci-defaults/luci-asterisk
index 612d7a8f21..e45819f602 100644..100755
--- a/applications/luci-asterisk/root/etc/uci-defaults/luci-asterisk
+++ b/applications/luci-asterisk/root/etc/uci-defaults/luci-asterisk
@@ -1,7 +1,11 @@
#!/bin/sh
-uci batch <<-EOF
+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