#!/bin/sh TMP=/tmp/.TOOLS echo "successfully installed" link=`readlink /var/swap` if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` FREE=`expr $SPACE - 100` echo new freespace size $FREE kb else echo "syncing disk" sync fi ln -s /var/swap/titanplugins/callmonitor1 /var/usr/local/share/titan/plugins/callmonitor1 if [ -e /tmp/callmon.conf ]; then mv /var/usr/local/share/titan/plugins/callmonitor1/callmon.conf /var/usr/local/share/titan/plugins/callmonitor1/callmon.conf_org cp /tmp/callmon.conf /var/usr/local/share/titan/plugins/callmonitor1/callmon.conf rm /tmp/callmon.conf fi echo "now you can choose the CallMonitor...." exit 0