#!/bin/sh TMP=/tmp/.tmp 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 rm -rf /var/usr/local/share/titan/plugins/browser ln -s /var/swap/titanplugins/browser /var/usr/local/share/titan/plugins/browser echo "install netsurf Browser...." exit 0