Index: ipk/source.sh4/players_dvdplayer/CONTROL/postinst
===================================================================
--- ipk/source.sh4/players_dvdplayer/CONTROL/postinst	(revision 23622)
+++ ipk/source.sh4/players_dvdplayer/CONTROL/postinst	(revision 23623)
@@ -1,15 +1,8 @@
 #!/bin/sh
-TMP=/tmp/.tmp
-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
+INSTDIR="$1"
+
+if [ "/var" != "$INSTDIR" ]; then
+	ln -sfn "$INSTDIR/usr/local/share/titan/plugins/dvdplayer" /var/usr/local/share/titan/plugins/dvdplayer
 fi
 
-echo "Please use GUI restart !!!!"
-
 exit 0
Index: ipk/source.sh4/players_dvdplayer/CONTROL/postrm
===================================================================
--- ipk/source.sh4/players_dvdplayer/CONTROL/postrm	(revision 23622)
+++ ipk/source.sh4/players_dvdplayer/CONTROL/postrm	(revision 23623)
@@ -1,15 +1,6 @@
 #!/bin/sh
-TMP=/tmp/.tmp
+INSTDIR="$1"
 
-rm -r /var/usr/local/share/titan/plugins/dvdplayer
+rm -rf "$INSTDIR/usr/local/share/titan/plugins/dvdplayer"
 
-echo "successfully removed"
-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
-fi
 exit 0
Index: ipk/source.sh4/players_dvdplayer/CONTROL/preinst
===================================================================
--- ipk/source.sh4/players_dvdplayer/CONTROL/preinst	(revision 23622)
+++ ipk/source.sh4/players_dvdplayer/CONTROL/preinst	(revision 23623)
@@ -1,37 +1,3 @@
 #!/bin/sh
-#
-TMP=/tmp/.tmp
-
-model=`cat /etc/model`
-echo""
-echo "Checking your Boxtype...."
-echo "Some Plugins will not work correctly on your $model!"
-echo ""
-if [ "$model" = "" ]; then
-	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
-	echo "Aborting installation..."
-	exit 1
-else
-	echo "Boxtype: $model OK"
-fi
-
-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=16
-	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
-	echo "syncing disk"
-	sync
-fi  
-echo "installing Dvd-Player ..."
 
 exit 0
Index: ipk/source.sh4/players_dvdplayer/CONTROL/prerm
===================================================================
--- ipk/source.sh4/players_dvdplayer/CONTROL/prerm	(revision 23622)
+++ ipk/source.sh4/players_dvdplayer/CONTROL/prerm	(revision 23623)
@@ -1,12 +1,3 @@
 #!/bin/sh
-TMP=/tmp/.titanskin
-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
-fi
-echo "removing Dvd-Player"
+
 exit 0
Index: ipk/source.sh4/players_hbbtv/CONTROL/postinst
===================================================================
--- ipk/source.sh4/players_hbbtv/CONTROL/postinst	(revision 23622)
+++ ipk/source.sh4/players_hbbtv/CONTROL/postinst	(revision 23623)
@@ -1,18 +1,11 @@
 #!/bin/sh
-TMP=/tmp/.tmp
-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
+INSTDIR="$1"
+
+rm -rf /var/usr/lib/gstreamer-0.10
+ln -s "$INSTDIR/usr/local/share/titan/plugins/hbbtv/opera/gstreamer-0.10" /var/usr/lib
+
+if [ "/var" != "$INSTDIR" ]; then
+	ln -sfn "$INSTDIR/usr/local/share/titan/plugins/hbbtv" /var/usr/local/share/titan/plugins/hbbtv
 fi
 
-rm -rf /var/usr/lib/gstreamer-0.10
-ln -s /var/swap/titanplugins/hbbtv/opera/gstreamer-0.10 /var/usr/lib
-
-echo "install hbbtv...."
 exit 0
-exit 0
Index: ipk/source.sh4/players_hbbtv/CONTROL/postrm
===================================================================
--- ipk/source.sh4/players_hbbtv/CONTROL/postrm	(revision 23622)
+++ ipk/source.sh4/players_hbbtv/CONTROL/postrm	(revision 23623)
@@ -1,16 +1,6 @@
 #!/bin/sh
-TMP=/tmp/.tmp
+INSTDIR="$1"
 
-#rm -rf /var/swap/titanplugins/hbbtv
-rm -rf /var/usr/local/share/titan/plugins/hbbtv
+rm -rf "$INSTDIR/usr/local/share/titan/plugins/hbbtv"
 
-echo "successfully removed"
-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
-fi
 exit 0
Index: ipk/source.sh4/players_hbbtv/CONTROL/preinst
===================================================================
--- ipk/source.sh4/players_hbbtv/CONTROL/preinst	(revision 23622)
+++ ipk/source.sh4/players_hbbtv/CONTROL/preinst	(revision 23623)
@@ -1,38 +1,3 @@
 #!/bin/sh
-#
-TMP=/tmp/.tmp
-
-model=`cat /etc/model`
-echo""
-echo "Checking your Boxtype...."
-echo "Some Plugins will not work correctly on your $model!"
-echo ""
-if [ "$model" = "atemio510" ]; then
-	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
-	echo "Aborting installation..."
-	exit 1
-else
-	echo "Boxtype: $model OK"
-fi
-
-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=16500
-	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
-	echo "syncing disk"
-	sync
-fi  
-#rm -rf /var/swap/titanplugins/hbbtv
-echo "installing hbbtv..."
 
 exit 0
Index: ipk/source.sh4/players_hbbtv/CONTROL/prerm
===================================================================
--- ipk/source.sh4/players_hbbtv/CONTROL/prerm	(revision 23622)
+++ ipk/source.sh4/players_hbbtv/CONTROL/prerm	(revision 23623)
@@ -1,12 +1,3 @@
 #!/bin/sh
-TMP=/tmp/.tmp
-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
-fi
-echo "removing hbbtv from swapstick"
+
 exit 0
Index: ipk/source.sh4/players_mc/CONTROL/postinst
===================================================================
--- ipk/source.sh4/players_mc/CONTROL/postinst	(revision 23622)
+++ ipk/source.sh4/players_mc/CONTROL/postinst	(revision 23623)
@@ -1,15 +1,8 @@
 #!/bin/sh
-TMP=/tmp/.tmp
-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
+INSTDIR="$1"
+
+if [ "/var" != "$INSTDIR" ]; then
+	ln -sfn "$INSTDIR/usr/local/share/titan/plugins/mc" /var/usr/local/share/titan/plugins/mc
 fi
 
-echo "Please use GUI restart !!!!"
-
 exit 0
Index: ipk/source.sh4/players_mc/CONTROL/postrm
===================================================================
--- ipk/source.sh4/players_mc/CONTROL/postrm	(revision 23622)
+++ ipk/source.sh4/players_mc/CONTROL/postrm	(revision 23623)
@@ -1,16 +1,6 @@
 #!/bin/sh
-TMP=/tmp/.tmp
+INSTDIR="$1"
 
-PLUGINDIR=/var/usr/local/share/titan/plugins/mc
-rm -r /var/usr/local/share/titan/plugins/mc
+rm -rf "$INSTDIR/usr/local/share/titan/plugins/mc"
 
-echo "successfully removed"
-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
-fi
 exit 0
Index: ipk/source.sh4/players_mc/CONTROL/preinst
===================================================================
--- ipk/source.sh4/players_mc/CONTROL/preinst	(revision 23622)
+++ ipk/source.sh4/players_mc/CONTROL/preinst	(revision 23623)
@@ -1,39 +1,3 @@
 #!/bin/sh
-#
-TMP=/tmp/.tmp
 
-model=`cat /etc/model`
-echo""
-echo "Checking your Boxtype...."
-echo "Some Plugins will not work correctly on your $model!"
-echo ""
-if [ "$model" = "" ]; then
-	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
-	echo "Aborting installation..."
-	exit 1
-else
-	echo "Boxtype: $model OK"
-fi
-
-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=1200
-	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
-	echo "syncing disk"
-	sync
-fi  
-echo "installing AAF MediaCenter ..."
-
-
-rm -r /var/usr/local/share/titan/plugins/mc
 exit 0
Index: ipk/source.sh4/players_mc/CONTROL/prerm
===================================================================
--- ipk/source.sh4/players_mc/CONTROL/prerm	(revision 23622)
+++ ipk/source.sh4/players_mc/CONTROL/prerm	(revision 23623)
@@ -1,12 +1,3 @@
 #!/bin/sh
-TMP=/tmp/.titanskin
-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
-fi
-echo "removing AAF MediaCenter"
+
 exit 0
Index: ipk/source.sh4/players_tithek/CONTROL/postinst
===================================================================
--- ipk/source.sh4/players_tithek/CONTROL/postinst	(revision 23622)
+++ ipk/source.sh4/players_tithek/CONTROL/postinst	(revision 23623)
@@ -1,15 +1,8 @@
 #!/bin/sh
-TMP=/tmp/.tmp
-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
+INSTDIR="$1"
+
+if [ "/var" != "$INSTDIR" ]; then
+	ln -sfn "$INSTDIR/usr/local/share/titan/plugins/tithek" /var/usr/local/share/titan/plugins/tithek
 fi
 
-echo "Please use GUI restart !!!!"
-
 exit 0
Index: ipk/source.sh4/players_tithek/CONTROL/postrm
===================================================================
--- ipk/source.sh4/players_tithek/CONTROL/postrm	(revision 23622)
+++ ipk/source.sh4/players_tithek/CONTROL/postrm	(revision 23623)
@@ -1,15 +1,6 @@
 #!/bin/sh
-TMP=/tmp/.tmp
+INSTDIR="$1"
 
-rm -r /var/usr/local/share/titan/plugins/tithek
+rm -rf "$INSTDIR/usr/local/share/titan/plugins/tithek"
 
-echo "successfully removed"
-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
-fi
 exit 0
Index: ipk/source.sh4/players_tithek/CONTROL/preinst
===================================================================
--- ipk/source.sh4/players_tithek/CONTROL/preinst	(revision 23622)
+++ ipk/source.sh4/players_tithek/CONTROL/preinst	(revision 23623)
@@ -1,37 +1,3 @@
 #!/bin/sh
-#
-TMP=/tmp/.tmp
-
-model=`cat /etc/model`
-echo""
-echo "Checking your Boxtype...."
-echo "Some Plugins will not work correctly on your $model!"
-echo ""
-if [ "$model" = "" ]; then
-	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
-	echo "Aborting installation..."
-	exit 1
-else
-	echo "Boxtype: $model OK"
-fi
-
-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=16
-	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
-	echo "syncing disk"
-	sync
-fi  
-echo "installing TiThek ..."
 
 exit 0
Index: ipk/source.sh4/players_tithek/CONTROL/prerm
===================================================================
--- ipk/source.sh4/players_tithek/CONTROL/prerm	(revision 23622)
+++ ipk/source.sh4/players_tithek/CONTROL/prerm	(revision 23623)
@@ -1,12 +1,3 @@
 #!/bin/sh
-TMP=/tmp/.titanskin
-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
-fi
-echo "removing TiThek"
+
 exit 0
Index: ipk/source.sh4/players_tmc/CONTROL/postinst
===================================================================
--- ipk/source.sh4/players_tmc/CONTROL/postinst	(revision 23622)
+++ ipk/source.sh4/players_tmc/CONTROL/postinst	(revision 23623)
@@ -1,15 +1,8 @@
 #!/bin/sh
-TMP=/tmp/.tmp
-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
+INSTDIR="$1"
+
+if [ "/var" != "$INSTDIR" ]; then
+	ln -sfn "$INSTDIR/usr/local/share/titan/plugins/tmc" /var/usr/local/share/titan/plugins/tmc
 fi
 
-echo "Please use GUI restart !!!!"
-
 exit 0
Index: ipk/source.sh4/players_tmc/CONTROL/postrm
===================================================================
--- ipk/source.sh4/players_tmc/CONTROL/postrm	(revision 23622)
+++ ipk/source.sh4/players_tmc/CONTROL/postrm	(revision 23623)
@@ -1,15 +1,6 @@
 #!/bin/sh
-TMP=/tmp/.tmp
+INSTDIR="$1"
 
-rm -r /var/usr/local/share/titan/plugins/tmc
+rm -rf "$INSTDIR/usr/local/share/titan/plugins/tmc"
 
-echo "successfully removed"
-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
-fi
 exit 0
Index: ipk/source.sh4/players_tmc/CONTROL/preinst
===================================================================
--- ipk/source.sh4/players_tmc/CONTROL/preinst	(revision 23622)
+++ ipk/source.sh4/players_tmc/CONTROL/preinst	(revision 23623)
@@ -1,37 +1,3 @@
 #!/bin/sh
-#
-TMP=/tmp/.tmp
-
-model=`cat /etc/model`
-echo""
-echo "Checking your Boxtype...."
-echo "Some Plugins will not work correctly on your $model!"
-echo ""
-if [ "$model" = "" ]; then
-	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
-	echo "Aborting installation..."
-	exit 1
-else
-	echo "Boxtype: $model OK"
-fi
-
-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=16
-	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
-	echo "syncing disk"
-	sync
-fi  
-echo "installing tmc ..."
 
 exit 0
Index: ipk/source.sh4/players_tmc/CONTROL/prerm
===================================================================
--- ipk/source.sh4/players_tmc/CONTROL/prerm	(revision 23622)
+++ ipk/source.sh4/players_tmc/CONTROL/prerm	(revision 23623)
@@ -1,12 +1,3 @@
 #!/bin/sh
-TMP=/tmp/.titanskin
-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
-fi
-echo "removing tmc"
+
 exit 0
Index: ipk/source.sh4/tools_PermanentTime/CONTROL/postinst
===================================================================
--- ipk/source.sh4/tools_PermanentTime/CONTROL/postinst	(revision 23622)
+++ ipk/source.sh4/tools_PermanentTime/CONTROL/postinst	(revision 23623)
@@ -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/permtime" /var/usr/local/share/titan/plugins/permtime
 fi
+
 exit 0
Index: ipk/source.sh4/tools_PermanentTime/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_PermanentTime/CONTROL/postrm	(revision 23622)
+++ ipk/source.sh4/tools_PermanentTime/CONTROL/postrm	(revision 23623)
@@ -1,15 +1,6 @@
 #!/bin/sh
-TMP=/tmp/.infos
-PLUGINDIR=/var/usr/local/share/titan/plugins/permtime
-rm -r $PLUGINDIR > /dev/null 2>&1
+INSTDIR="$1"
 
-echo "successfully removed"
-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
-fi
+rm -rf "$INSTDIR/usr/local/share/titan/plugins/permtime"
+
 exit 0
Index: ipk/source.sh4/tools_PermanentTime/CONTROL/preinst
===================================================================
--- ipk/source.sh4/tools_PermanentTime/CONTROL/preinst	(revision 23622)
+++ ipk/source.sh4/tools_PermanentTime/CONTROL/preinst	(revision 23623)
@@ -1,47 +1,3 @@
 #!/bin/sh
-#
-TMP=/tmp/.infos
-
-model=`cat /etc/model`
-echo""
-echo "Checking your Boxtype...."
-echo "Some Plugins will not work correctly on your $model!"
-echo ""
-if [ "$model" = "" ]; then
-	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
-	echo "Aborting installation..."
-	exit 1
-else
-	echo "Boxtype: $model OK"
-fi
-
-echo "install permTime 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=8
-	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
-	echo "syncing disk"
-	sync
-fi
-buildgroup=`cat /etc/.buildgroup`
-echo "checking OS"	 
-if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then 	 	 
-	echo --------------------------- 	 	 
-	echo DONT USE this IPK Package!! 	 	 
-	echo --- 	 	 
-	echo Only for $buildgroup Image!! 	 	 
-	echo --------------------------- 	 	 
-	exit 1 	 	 
-fi
 
 exit 0
Index: ipk/source.sh4/tools_PermanentTime/CONTROL/prerm
===================================================================
--- ipk/source.sh4/tools_PermanentTime/CONTROL/prerm	(revision 23622)
+++ ipk/source.sh4/tools_PermanentTime/CONTROL/prerm	(revision 23623)
@@ -1,12 +1,3 @@
 #!/bin/sh
-TMP=/tmp/.infos
-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
-fi
-echo "removing permTime Plugin"
+
 exit 0
Index: ipk/source.sh4/tools_filemanager/CONTROL/postinst
===================================================================
--- ipk/source.sh4/tools_filemanager/CONTROL/postinst	(revision 23622)
+++ ipk/source.sh4/tools_filemanager/CONTROL/postinst	(revision 23623)
@@ -1,13 +1,8 @@
 #!/bin/sh
-TMP=/tmp/.tools
+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/filemanager" /var/usr/local/share/titan/plugins/filemanager
 fi
+
 exit 0
Index: ipk/source.sh4/tools_filemanager/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_filemanager/CONTROL/postrm	(revision 23622)
+++ ipk/source.sh4/tools_filemanager/CONTROL/postrm	(revision 23623)
@@ -1,15 +1,6 @@
 #!/bin/sh
-TMP=/tmp/.tools
-PLUGINDIR=/var/usr/local/share/titan/plugins/filemanager
-rm -rf $PLUGINDIR > /dev/null 2>&1
+INSTDIR="$1"
 
-echo "successfully removed"
-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
-fi
+rm -rf "$INSTDIR/usr/local/share/titan/plugins/filemanager"
+
 exit 0
Index: ipk/source.sh4/tools_filemanager/CONTROL/preinst
===================================================================
--- ipk/source.sh4/tools_filemanager/CONTROL/preinst	(revision 23622)
+++ ipk/source.sh4/tools_filemanager/CONTROL/preinst	(revision 23623)
@@ -1,47 +1,3 @@
 #!/bin/sh
-#
-TMP=/tmp/.tools
-
-model=`cat /etc/model`
-echo""
-echo "Checking your Boxtype...."
-echo "Some Plugins will not work correctly on your $model!"
-echo ""
-if [ "$model" = "" ]; then
-	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
-	echo "Aborting installation..."
-	exit 1
-else
-	echo "Boxtype: $model OK"
-fi
-
-echo "install filemanager 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
-	echo "syncing disk"
-	sync
-fi
-buildgroup=`cat /etc/.buildgroup`
-echo "checking OS"	 
-if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then 	 	 
-	echo --------------------------- 	 	 
-	echo DONT USE this IPK Package!! 	 	 
-	echo --- 	 	 
-	echo Only for $buildgroup Image!! 	 	 
-	echo --------------------------- 	 	 
-	exit 1 	 	 
-fi
 
 exit 0
Index: ipk/source.sh4/tools_filemanager/CONTROL/prerm
===================================================================
--- ipk/source.sh4/tools_filemanager/CONTROL/prerm	(revision 23622)
+++ ipk/source.sh4/tools_filemanager/CONTROL/prerm	(revision 23623)
@@ -1,12 +1,3 @@
 #!/bin/sh
-TMP=/tmp/.tools
-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
-fi
-echo "removing filemanager Plugin"
+
 exit 0
Index: ipk/source.sh4/tools_keylock/CONTROL/postinst
===================================================================
--- ipk/source.sh4/tools_keylock/CONTROL/postinst	(revision 23622)
+++ ipk/source.sh4/tools_keylock/CONTROL/postinst	(revision 23623)
@@ -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/keylock" /var/usr/local/share/titan/plugins/keylock
 fi
+
 exit 0
Index: ipk/source.sh4/tools_keylock/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_keylock/CONTROL/postrm	(revision 23622)
+++ ipk/source.sh4/tools_keylock/CONTROL/postrm	(revision 23623)
@@ -1,15 +1,6 @@
 #!/bin/sh
-TMP=/tmp/.infos
-PLUGINDIR=/var/usr/local/share/titan/plugins/keylock
-rm -r $PLUGINDIR > /dev/null 2>&1
+INSTDIR="$1"
 
-echo "successfully removed"
-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
-fi
+rm -rf "$INSTDIR/usr/local/share/titan/plugins/keylock"
+
 exit 0
Index: ipk/source.sh4/tools_keylock/CONTROL/preinst
===================================================================
--- ipk/source.sh4/tools_keylock/CONTROL/preinst	(revision 23622)
+++ ipk/source.sh4/tools_keylock/CONTROL/preinst	(revision 23623)
@@ -1,47 +1,3 @@
 #!/bin/sh
-#
-TMP=/tmp/.infos
-
-model=`cat /etc/model`
-echo""
-echo "Checking your Boxtype...."
-echo "Some Plugins will not work correctly on your $model!"
-echo ""
-if [ "$model" = "" ]; then
-	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
-	echo "Aborting installation..."
-	exit 1
-else
-	echo "Boxtype: $model OK"
-fi
-
-echo "install keylock 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=10
-	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
-	echo "syncing disk"
-	sync
-fi
-buildgroup=`cat /etc/.buildgroup`
-echo "checking OS"	 
-if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then 	 	 
-	echo --------------------------- 	 	 
-	echo DONT USE this IPK Package!! 	 	 
-	echo --- 	 	 
-	echo Only for $buildgroup Image!! 	 	 
-	echo --------------------------- 	 	 
-	exit 1 	 	 
-fi
 
 exit 0
Index: ipk/source.sh4/tools_keylock/CONTROL/prerm
===================================================================
--- ipk/source.sh4/tools_keylock/CONTROL/prerm	(revision 23622)
+++ ipk/source.sh4/tools_keylock/CONTROL/prerm	(revision 23623)
@@ -1,12 +1,3 @@
 #!/bin/sh
-TMP=/tmp/.infos
-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
-fi
-echo "removing keylock Plugin"
+
 exit 0
Index: ipk/source.sh4/tools_optimize/CONTROL/postinst
===================================================================
--- ipk/source.sh4/tools_optimize/CONTROL/postinst	(revision 23622)
+++ ipk/source.sh4/tools_optimize/CONTROL/postinst	(revision 23623)
@@ -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/optimize" /var/usr/local/share/titan/plugins/optimize
 fi
+
 exit 0
Index: ipk/source.sh4/tools_optimize/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_optimize/CONTROL/postrm	(revision 23622)
+++ ipk/source.sh4/tools_optimize/CONTROL/postrm	(revision 23623)
@@ -1,15 +1,6 @@
 #!/bin/sh
-TMP=/tmp/.infos
-PLUGINDIR=/var/usr/local/share/titan/plugins/optimize
-rm -r $PLUGINDIR > /dev/null 2>&1
+INSTDIR="$1"
 
-echo "successfully removed"
-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
-fi
+rm -rf "$INSTDIR/usr/local/share/titan/plugins/optimize"
+
 exit 0
Index: ipk/source.sh4/tools_optimize/CONTROL/preinst
===================================================================
--- ipk/source.sh4/tools_optimize/CONTROL/preinst	(revision 23622)
+++ ipk/source.sh4/tools_optimize/CONTROL/preinst	(revision 23623)
@@ -1,47 +1,3 @@
 #!/bin/sh
-#
-TMP=/tmp/.infos
-
-model=`cat /etc/model`
-echo""
-echo "Checking your Boxtype...."
-echo "Some Plugins will not work correctly on your $model!"
-echo ""
-if [ "$model" = "" ]; then
-	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
-	echo "Aborting installation..."
-	exit 1
-else
-	echo "Boxtype: $model OK"
-fi
-
-echo "install optimize 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
-	echo "syncing disk"
-	sync
-fi
-buildgroup=`cat /etc/.buildgroup`
-echo "checking OS"	 
-if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then 	 	 
-	echo --------------------------- 	 	 
-	echo DONT USE this IPK Package!! 	 	 
-	echo --- 	 	 
-	echo Only for $buildgroup Image!! 	 	 
-	echo --------------------------- 	 	 
-	exit 1 	 	 
-fi
 
 exit 0
Index: ipk/source.sh4/tools_optimize/CONTROL/prerm
===================================================================
--- ipk/source.sh4/tools_optimize/CONTROL/prerm	(revision 23622)
+++ ipk/source.sh4/tools_optimize/CONTROL/prerm	(revision 23623)
@@ -1,12 +1,3 @@
 #!/bin/sh
-TMP=/tmp/.infos
-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
-fi
-echo "removing optimize Plugin"
+
 exit 0
Index: ipk/source.sh4/tools_panel/CONTROL/postinst
===================================================================
--- ipk/source.sh4/tools_panel/CONTROL/postinst	(revision 23622)
+++ ipk/source.sh4/tools_panel/CONTROL/postinst	(revision 23623)
@@ -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/panel" /var/usr/local/share/titan/plugins/panel
 fi
+
 exit 0
Index: ipk/source.sh4/tools_panel/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_panel/CONTROL/postrm	(revision 23622)
+++ ipk/source.sh4/tools_panel/CONTROL/postrm	(revision 23623)
@@ -1,15 +1,6 @@
 #!/bin/sh
-TMP=/tmp/.infos
-PLUGINDIR=/var/usr/local/share/titan/plugins/panel
-rm -rf $PLUGINDIR > /dev/null 2>&1
+INSTDIR="$1"
 
-echo "successfully removed"
-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
-fi
+rm -rf "$INSTDIR/usr/local/share/titan/plugins/panel"
+
 exit 0
Index: ipk/source.sh4/tools_panel/CONTROL/preinst
===================================================================
--- ipk/source.sh4/tools_panel/CONTROL/preinst	(revision 23622)
+++ ipk/source.sh4/tools_panel/CONTROL/preinst	(revision 23623)
@@ -1,47 +1,3 @@
 #!/bin/sh
-#
-TMP=/tmp/.infos
-
-model=`cat /etc/model`
-echo""
-echo "Checking your Boxtype...."
-echo "Some Plugins will not work correctly on your $model!"
-echo ""
-if [ "$model" = "" ]; then
-	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
-	echo "Aborting installation..."
-	exit 1
-else
-	echo "Boxtype: $model OK"
-fi
-
-echo "install panel 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
-	echo "syncing disk"
-	sync
-fi
-buildgroup=`cat /etc/.buildgroup`
-echo "checking OS"	 
-if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then 	 	 
-	echo --------------------------- 	 	 
-	echo DONT USE this IPK Package!! 	 	 
-	echo --- 	 	 
-	echo Only for $buildgroup Image!! 	 	 
-	echo --------------------------- 	 	 
-	exit 1 	 	 
-fi
 
 exit 0
Index: ipk/source.sh4/tools_panel/CONTROL/prerm
===================================================================
--- ipk/source.sh4/tools_panel/CONTROL/prerm	(revision 23622)
+++ ipk/source.sh4/tools_panel/CONTROL/prerm	(revision 23623)
@@ -1,12 +1,3 @@
 #!/bin/sh
-TMP=/tmp/.infos
-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
-fi
-echo "removing panel Plugin"
+
 exit 0
