summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-asterisk
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-01-11 04:20:34 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-01-11 04:20:34 +0000
commitbcd406e0735f2195af399fccfcd5187dfc4b8f94 (patch)
tree9f0bdac6b638f47fc7070f65e0add8bd159032d7 /applications/luci-asterisk
parent00636ae577d3d7e6a8c7b216ae46df499291eeb7 (diff)
applications/luci-asterisk: register with ucitrack
Diffstat (limited to 'applications/luci-asterisk')
-rwxr-xr-xapplications/luci-asterisk/ipkg/postinst4
-rw-r--r--applications/luci-asterisk/root/etc/uci-defaults/luci-asterisk7
2 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-asterisk/ipkg/postinst b/applications/luci-asterisk/ipkg/postinst
new file mode 100755
index 000000000..68f2b1a89
--- /dev/null
+++ b/applications/luci-asterisk/ipkg/postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+ ( . /etc/uci-defaults/luci-asterisk ) && rm -f /etc/uci-defaults/luci-asterisk
+}
diff --git a/applications/luci-asterisk/root/etc/uci-defaults/luci-asterisk b/applications/luci-asterisk/root/etc/uci-defaults/luci-asterisk
new file mode 100644
index 000000000..4e2465084
--- /dev/null
+++ b/applications/luci-asterisk/root/etc/uci-defaults/luci-asterisk
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+uci batch <<-EOF
+ add ucitrack asterisk
+ set ucitrack.@olsrd[-1].init=asterisk
+ commit ucitrack
+EOF