Index: ipk/source.sh4/tools_IP-Kamera/CONTROL/postinst
===================================================================
--- ipk/source.sh4/tools_IP-Kamera/CONTROL/postinst	(revision 45683)
+++ ipk/source.sh4/tools_IP-Kamera/CONTROL/postinst	(revision 45684)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then ];then
 	opkg update
 	opkg install titan-plugin-instar --dest $1
@@ -9,5 +9,5 @@
 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/instar"
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ -e /tmp/instar.conf ]; then
 	mv "$PLUGINDIR/instar.conf" "$PLUGINDIR/instar.conf_org"
 	cp /tmp/instar.conf "$PLUGINDIR/instar.conf"
Index: ipk/source.sh4/tools_IP-Kamera/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_IP-Kamera/CONTROL/postrm	(revision 45683)
+++ ipk/source.sh4/tools_IP-Kamera/CONTROL/postrm	(revision 45684)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then ];then
 	opkg remove titan-plugin-instar --dest $1
 else
Index: ipk/source.sh4/tools_IP-Kamera/CONTROL/preinst
===================================================================
--- ipk/source.sh4/tools_IP-Kamera/CONTROL/preinst	(revision 45683)
+++ ipk/source.sh4/tools_IP-Kamera/CONTROL/preinst	(revision 45684)
@@ -3,5 +3,5 @@
 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/instar"
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ -e "$PLUGINDIR/instar.conf" ]; then
 	cp "$PLUGINDIR/instar.conf" /tmp/instar.conf 
 fi
