Index: ipk/source.sh4/titanswapskins_0Acht5Zehnwhite/CONTROL/prerm
===================================================================
--- ipk/source.sh4/titanswapskins_0Acht5Zehnwhite/CONTROL/prerm	(revision 11158)
+++ ipk/source.sh4/titanswapskins_0Acht5Zehnwhite/CONTROL/prerm	(revision 12781)
@@ -1,10 +1,12 @@
 #!/bin/sh
 TMP=/tmp/.titanskin
-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`
+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 freespace size $FREE kb
+	echo new freespace size $FREE kb
+else
+	echo "syncing disk"
+	sync
 fi
 echo "removing Swap 0Acht5Zehn white Skin"
