Index: ipk/source.sh4/titantools_IP-Kammera/CONTROL/preinst
===================================================================
--- ipk/source.sh4/titantools_IP-Kammera/CONTROL/preinst	(revision 18513)
+++ ipk/source.sh4/titantools_IP-Kammera/CONTROL/preinst	(revision 23447)
@@ -2,52 +2,12 @@
 #
 TMP=/tmp/.infos
+INSTDIR="$1" 
+PLUGINDIR=$INSTDIR/usr/local/share/titan/plugins/instar
 
-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"
+if [ -e $PLUGINDIR/instar.conf ]; then
+	cp $PLUGINDIR/instar.conf /tmp/instar.conf 
 fi
 
-echo "install IP-Kammera 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=40
-	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
-
-if [ -e /var/usr/local/share/titan/plugins/instar/instar.conf ]; then
-	cp /var/usr/local/share/titan/plugins/instar/instar.conf /tmp/instar.conf 
-fi
-
-rm -rf /var/usr/local/share/titan/plugins/instar
+rm -rf $PLUGINDIR
 
 exit 0
