diff options
-rwxr-xr-x | applications/luci-asterisk/ipkg/postinst | 4 | ||||
-rw-r--r-- | applications/luci-asterisk/root/etc/uci-defaults/luci-asterisk | 7 |
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 0000000000..68f2b1a89f --- /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 0000000000..4e2465084d --- /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 |