summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/asterisk-xip/Makefile
diff options
context:
space:
mode:
authorMichael Geddes <openwrt@frog.wheelycreek.net>2009-01-18 12:51:28 +0000
committerMichael Geddes <openwrt@frog.wheelycreek.net>2009-01-18 12:51:28 +0000
commit11ebe1aa815805b4d02f48012467d265c8e7f208 (patch)
tree3a381a4b0ca22c68bbc6c6ddbdfa55e436040a6a /contrib/package/asterisk-xip/Makefile
parent77f31860a094b15ece5fc9bc1971d5a99ff9e4aa (diff)
Add link to load voicemenu config.
Diffstat (limited to 'contrib/package/asterisk-xip/Makefile')
-rw-r--r--contrib/package/asterisk-xip/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/package/asterisk-xip/Makefile b/contrib/package/asterisk-xip/Makefile
index f56d913832..b35750f4a3 100644
--- a/contrib/package/asterisk-xip/Makefile
+++ b/contrib/package/asterisk-xip/Makefile
@@ -1206,7 +1206,11 @@ endef
define Package/asterisk14-xip-core/postinst
#!/bin/sh
-ROOT=`echo $${PKG_ROOT} | sed 's:[\/]:\\\&:g' -`
+if [ -z "${IPKG_INSTROOT}" ] ; then
+ ROOT=/
+else
+ ROOT=`echo $${PKG_ROOT} | sed 's:[\/]:\\\&:g' -`
+fi
/bin/sed -i 's/\ \/etc/\ '$${ROOT}'etc/g' $${PKG_ROOT}/etc/asterisk/asterisk.conf
/bin/sed -i 's/\ \/var\/spool/\ '$${ROOT}'var\/spool/g' $${PKG_ROOT}/etc/asterisk/asterisk.conf
/bin/sed -i 's/\ \/var\/log/\ '$${ROOT}'var\/log/g' $${PKG_ROOT}/etc/asterisk/asterisk.conf
@@ -1222,12 +1226,15 @@ ln -s ../../../usr/lib/asterisk/uci/lastcall 25-lastcall
ln -s ../../../usr/lib/asterisk/uci/meetmeconf 30-meetme
ln -s ../../../usr/lib/asterisk/uci/sipiaxconf 35-sipiax
ln -s ../../../usr/lib/asterisk/uci/talkclock 40-talkclock
+ln -s ../../../usr/lib/asterisk/uci/voicemenu 45-voicemenu
endef
define Package/asterisk14-xip/install
+ $(INSTALL_DIR) $(1)/usr/lib/asterisk
endef
define Package/asterisk14-xip-mini/install
+ $(INSTALL_DIR) $(1)/usr/lib/asterisk
endef
define Package/asterisk14-xip-app-meetme/conffiles