#!/bin/sh
TMP=/tmp/.titanskin
echo "successfully installed"
echo "syncing disk"
sync

mv /var/usr/local/share/titan/skin/0Acht5Zehn/16_9.png /var/usr/local/share/titan/skin/0Acht5Zehn/skin/16:9.png
mv /var/usr/local/share/titan/skin/0Acht5Zehn/4_3.png "/var/usr/local/share/titan/skin/0Acht5Zehn/skin/4:3.png

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

exit 0