#!/bin/sh
TMP=/tmp/.keymaps
echo "Erfolgreich deinstalliert..."

if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
	FREE=`expr $SPACE - 100`
	echo new freespace size $FREE kb
else
	echo "syncing disk"
	sync
fi

#. /mnt/config/titan.cfg
#rm $rcmapfile
#mv $rcmapfile.old $rcmapfile
rm /mnt/config/rcmap
mv /mnt/config/rcmap.old /mnt/config/rcmap


exit 0