Index: ipk/source.sh4/tools_rgui/CONTROL/postinst
===================================================================
--- ipk/source.sh4/tools_rgui/CONTROL/postinst	(revision 23484)
+++ ipk/source.sh4/tools_rgui/CONTROL/postinst	(revision 23624)
@@ -1,13 +1,8 @@
 #!/bin/sh
-TMP=/tmp/.infos
+INSTDIR="$1"
 
-echo "successfully installed"
-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`
-	echo new freespace size $FREE kb
-else
-	echo "syncing disk"
-	sync
+if [ "/var" != "$INSTDIR" ]; then
+	ln -sfn "$INSTDIR/usr/local/share/titan/plugins/rgui" /var/usr/local/share/titan/plugins/rgui
 fi
+
 exit 0
