Index: ipk/source.sh4/titanswaptools_lcdpearl1/CONTROL/postinst
===================================================================
--- ipk/source.sh4/titanswaptools_lcdpearl1/CONTROL/postinst	(revision 15994)
+++ ipk/source.sh4/titanswaptools_lcdpearl1/CONTROL/postinst	(revision 23448)
@@ -1,4 +1,6 @@
 #!/bin/sh
 TMP=/tmp/.TOOLS
+INSTDIR="$1"  
+PLUGINDIR=$INSTDIR/usr/local/share/titan/plugins/lcdpearl1 
 
 if [ `cat /proc/version | grep stm24 | wc -l` -eq 1 ]; then
@@ -7,23 +9,8 @@
 	cd /tmp/stm23
 fi
-cp -RP lcdpearl1 /var/swap/titanplugins
+cp -RP lcdpearl1 $INSTDIR/usr/local/share/titan/plugins
 cd /tmp
 rm -rf stm24
 rm -rf stm23
 
-echo "successfully installed"
-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
-else
-	echo "syncing disk"
-	sync
-fi
-
-rm -rf /var/usr/local/share/titan/plugins/lcdpearl1
-ln -s /var/swap/titanplugins/lcdpearl1 /var/usr/local/share/titan/plugins/lcdpearl1
-
-echo "now you can choose the Pearl LCD...."
 exit 0
