From: Jo-Philipp Wich Date: Sun, 11 Jan 2009 04:20:34 +0000 (+0000) Subject: applications/luci-asterisk: register with ucitrack X-Git-Tag: 0.9.0~813 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bcd406e0735f2195af399fccfcd5187dfc4b8f94;p=oweals%2Fluci.git applications/luci-asterisk: register with ucitrack --- 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