#!/bin/sh
TMP=/tmp/.epg
echo "syncing disk"
sync
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
echo ""
echo "*******************************"
echo "*  Cool TV Guide by Coolman   *"
echo "*  3D EPG-Plugin for Enigma2  *"
echo "*  Coded by Coolman (c) 2010  *"
echo "*******************************"
echo ""
echo ""
echo "Plugin successfully installed!"
echo ""
echo "You should restart enigma2 now..."
echo ""
echo ""
echo ""
echo "syncing disk"
sync
exit 0
