Index: ipk/source.sh4/titanswapskins_tobayer01/CONTROL/postinst
===================================================================
--- ipk/source.sh4/titanswapskins_tobayer01/CONTROL/postinst	(revision 13990)
+++ ipk/source.sh4/titanswapskins_tobayer01/CONTROL/postinst	(revision 23201)
@@ -1,15 +1,30 @@
 #!/bin/sh
-TMP=/tmp/.titanskin
-echo "successfully installed"
+
+releaseversion=22775
+plugindir="/var/swap/titanskins/tobayer01"
+imageversion=`cat /etc/version | cut -d "_" -f2 | sed 's/M//'`;
 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 new freespace size $FREE kb
+	echo "new freespace size $FREE kb"
 else
-	echo "syncing disk"
+	#echo "syncing disk"
 	sync
 fi
+
+echo "successfully installed"
 echo "now you can choose the new skin...."
 
+if  [ "$imageversion" -gt "$releaseversion" ]; then
+	echo "=> non-release image"
+	echo "==> rm $plugindir/skin_release.xml"
+	rm $plugindir/skin_release.xml
+else
+	echo "=> release image"
+	echo "==> mv $plugindir/skin_release.xml $plugindir/skin.xml"
+	mv $plugindir/skin_release.xml $plugindir/skin.xml
+fi
+
 exit 0
