Index: ipk/source.sh4/titangames_catcatch/CONTROL/preinst
===================================================================
--- ipk/source.sh4/titangames_catcatch/CONTROL/preinst	(revision 16975)
+++ ipk/source.sh4/titangames_catcatch/CONTROL/preinst	(revision 23366)
@@ -1,5 +1,4 @@
 #!/bin/sh
-#
-TMP=/tmp/.games
+INSTDIR="$1"
 
 model=`cat /etc/model`
@@ -17,21 +16,9 @@
 
 echo "install catcatch Plugin ..."
-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`
-	SIZE=15
-	echo "checking freespace"
-	echo packege size $SIZE kb
-	echo freespace size $FREE kb
-	if  [ "$FREE" -lt "$SIZE" ]; then
-		echo "sorry no freespace left on device"
-		exit 1
-	else
-		echo ok		
-	fi
-else
+if [ "/var/swap" == "$INSTDIR" ]; then
 	echo "syncing disk"
 	sync
 fi
+
 buildgroup=`cat /etc/.buildgroup`
 echo "checking OS"	 
