From bcd406e0735f2195af399fccfcd5187dfc4b8f94 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 11 Jan 2009 04:20:34 +0000 Subject: applications/luci-asterisk: register with ucitrack --- applications/luci-asterisk/ipkg/postinst | 4 ++++ applications/luci-asterisk/root/etc/uci-defaults/luci-asterisk | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100755 applications/luci-asterisk/ipkg/postinst create mode 100644 applications/luci-asterisk/root/etc/uci-defaults/luci-asterisk (limited to 'applications/luci-asterisk') 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 -- cgit v1.2.3