Index: /ipk/source.arm/tools_optimize/CONTROL/postinst
===================================================================
--- /ipk/source.arm/tools_optimize/CONTROL/postinst	(revision 45682)
+++ /ipk/source.arm/tools_optimize/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-optimize --dest $1
Index: /ipk/source.arm/tools_optimize/CONTROL/postrm
===================================================================
--- /ipk/source.arm/tools_optimize/CONTROL/postrm	(revision 45682)
+++ /ipk/source.arm/tools_optimize/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-optimize --dest $1
 fi
Index: /ipk/source.sh4/browser_netsurf/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/browser_netsurf/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/browser_netsurf/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-browser --dest $1
Index: /ipk/source.sh4/browser_netsurf/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/browser_netsurf/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/browser_netsurf/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-browser --dest $1
 	opkg remove titan-netsurf
Index: /ipk/source.sh4/games_catcatch/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/games_catcatch/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/games_catcatch/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-catcatch --dest $1
Index: /ipk/source.sh4/games_catcatch/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/games_catcatch/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/games_catcatch/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-catcatch --dest $1
 fi
Index: /ipk/source.sh4/games_sudoku/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/games_sudoku/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/games_sudoku/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-sudoku --dest $1
Index: /ipk/source.sh4/games_sudoku/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/games_sudoku/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/games_sudoku/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-sudoku --dest $1
 fi
Index: /ipk/source.sh4/games_wins3/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/games_wins3/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/games_wins3/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-wins3 --dest $1
Index: /ipk/source.sh4/games_wins3/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/games_wins3/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/games_wins3/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-wins3 --dest $1
 fi
Index: /ipk/source.sh4/infos_imdb/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/infos_imdb/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/infos_imdb/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-imdb --dest $1
Index: /ipk/source.sh4/infos_imdb/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/infos_imdb/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/infos_imdb/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-imdb --dest $1
 fi
Index: /ipk/source.sh4/infos_imdbapi/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/infos_imdbapi/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/infos_imdbapi/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-imdbapi --dest $1
Index: /ipk/source.sh4/infos_imdbapi/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/infos_imdbapi/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/infos_imdbapi/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-imdbapi --dest $1
 fi
Index: /ipk/source.sh4/infos_news/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/infos_news/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/infos_news/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-news --dest $1
Index: /ipk/source.sh4/infos_news/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/infos_news/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/infos_news/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-news --dest $1
 fi
Index: /ipk/source.sh4/infos_stock/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/infos_stock/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/infos_stock/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-stock --dest $1
Index: /ipk/source.sh4/infos_stock/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/infos_stock/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/infos_stock/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-stock --dest $1
 fi
Index: /ipk/source.sh4/infos_streaminfo/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/infos_streaminfo/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/infos_streaminfo/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-streaminfo --dest $1
Index: /ipk/source.sh4/infos_streaminfo/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/infos_streaminfo/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/infos_streaminfo/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-streaminfo --dest $1
 fi
Index: /ipk/source.sh4/infos_tmdb/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/infos_tmdb/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/infos_tmdb/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-tmdb --dest $1
Index: /ipk/source.sh4/infos_tmdb/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/infos_tmdb/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/infos_tmdb/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-tmdb --dest $1
 fi
Index: /ipk/source.sh4/infos_weather/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/infos_weather/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/infos_weather/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-weather --dest $1
Index: /ipk/source.sh4/infos_weather/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/infos_weather/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/infos_weather/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-weather --dest $1
 fi
Index: /ipk/source.sh4/infos_wm2018/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/infos_wm2018/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/infos_wm2018/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-wm2018 --dest $1
Index: /ipk/source.sh4/infos_wm2018/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/infos_wm2018/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/infos_wm2018/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-wm2018 --dest $1
 fi
Index: /ipk/source.sh4/network_dlna/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/network_dlna/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/network_dlna/CONTROL/postinst	(revision 45683)
@@ -6,5 +6,5 @@
 echo PLUGINDIR $PLUGINDIR
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install minidlna --dest $1
@@ -16,5 +16,5 @@
 echo "Set ServerName ($Name) to minidlna.conf"
 
-if [ ! -e "$INSTDIR/etc/minidlna.conf" ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	echo "use tpk config file: minidlna.conf"
 	echo "rename $INSTDIR/etc/minidlna.conf.minidlna > $INSTDIR/etc/minidlna.conf"
Index: /ipk/source.sh4/network_dlna/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/network_dlna/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/network_dlna/CONTROL/postrm	(revision 45683)
@@ -5,5 +5,5 @@
 rm -rf "$PLUGINDIR" >/dev/null 2>&1
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove minidlna --dest $1
 fi
Index: /ipk/source.sh4/network_dlna/CONTROL/prerm
===================================================================
--- /ipk/source.sh4/network_dlna/CONTROL/prerm	(revision 45682)
+++ /ipk/source.sh4/network_dlna/CONTROL/prerm	(revision 45683)
@@ -4,5 +4,5 @@
 echo prerm INSTDIR $INSTDIR
 
-if [ ! -e "$INSTDIR/etc/minidlna.conf.minidlna" ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	echo "remove tpk minidlna.conf"
 	rm -f "$INSTDIR/etc/minidlna.conf"
Index: /ipk/source.sh4/network_dropbear/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/network_dropbear/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/network_dropbear/CONTROL/postinst	(revision 45683)
@@ -14,10 +14,10 @@
 mkdir -p /mnt/dropbear
 
-if [ ! -e /mnt/dropbear/dropbear_rsa_host_key ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	dropbearkey -t rsa -s 2048 -f /mnt/dropbear/dropbear_rsa_host_key
 fi
 
 grep dropbear /var/etc/inetd.conf > /dev/null
-if [ $? = 1 ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	killall -9 inetd > /dev/null
 	echo "22 stream tcp nowait root /mnt/swapextensions/bin/dropbear dropbear -i -a -B -p 22" >> /var/etc/inetd.conf
Index: /ipk/source.sh4/network_dropbear/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/network_dropbear/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/network_dropbear/CONTROL/postrm	(revision 45683)
@@ -14,5 +14,5 @@
 
 grep dropbear /var/etc/inetd.conf > /dev/null
-if [ $? = 0 ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	killall -9 inetd > /dev/null
 	sed -i '/dropbear/d' /var/etc/inetd.conf
Index: /ipk/source.sh4/network_facebook/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/network_facebook/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/network_facebook/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-facebook --dest $1
Index: /ipk/source.sh4/network_facebook/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/network_facebook/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/network_facebook/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-facebook --dest $1
 fi
Index: /ipk/source.sh4/network_ipsec/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/network_ipsec/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/network_ipsec/CONTROL/postinst	(revision 45683)
@@ -3,8 +3,8 @@
 ARCH=$(cat /etc/.arch)
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install strongswan
-	if [ "$ARCH" == "sh4" ];then
+	if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 		opkg install kernel-module-aes-generic
 		opkg install kernel-module-sha1-generic
Index: /ipk/source.sh4/network_ipsec/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/network_ipsec/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/network_ipsec/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	sed 's/ipsec=.*//g' -i /mnt/config/start-config
 	opkg remove strongswan --force-removal-of-dependent-packages
Index: /ipk/source.sh4/network_minisatip/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/network_minisatip/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/network_minisatip/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install minisatip
Index: /ipk/source.sh4/network_minisatip/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/network_minisatip/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/network_minisatip/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	sed 's/minisatip=.*//g' -i /mnt/config/start-config
 	opkg remove minisatip
Index: /ipk/source.sh4/network_networkbrowser/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/network_networkbrowser/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/network_networkbrowser/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-networkbrowser --dest $1
Index: /ipk/source.sh4/network_networkbrowser/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/network_networkbrowser/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/network_networkbrowser/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-networkbrowser --dest $1
 fi
Index: /ipk/source.sh4/network_samba/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/network_samba/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/network_samba/CONTROL/postinst	(revision 45683)
@@ -6,5 +6,5 @@
 export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/var/swap/lib:/mnt/swapextensions/lib:/var/lib
 
-if [ -f /mnt/config/start-config ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	echo "enable samba autostart on /mnt/config/start-config"
 	sed s#"sambaserver=n"#"sambaserver=y"#g -i /mnt/config/start-config
@@ -12,15 +12,15 @@
 
 echo "if not exist, use restore smb.conf"
-if [ ! -e /mnt/config/smb.conf ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	cp /etc/titan.restore/mnt/config/smb.conf /mnt/config/smb.conf
 fi
 
 echo "check if smbpasswd exists"
-if [ ! -e $INSTDIR/etc/samba/private/smbpasswd ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	touch $INSTDIR/etc/samba/private/smbpasswd
 fi
 
 echo "check if secrets.tdb exists"
-if [ ! -e $INSTDIR/etc/samba/private/secrets.tdb ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	touch $INSTDIR/etc/samba/private/secrets.tdb
 fi
Index: /ipk/source.sh4/network_samba/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/network_samba/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/network_samba/CONTROL/postrm	(revision 45683)
@@ -2,5 +2,5 @@
 INSTDIR="$1"
 
-if [ "$INSTDIR" != "/var" ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	rm -rf /var/bin/smbd > /dev/null 2>&1
 	rm -rf /var/bin/nmbd > /dev/null 2>&1
@@ -9,5 +9,5 @@
 rm /mnt/config/smb.conf
 
-if [ -f /mnt/config/start-config ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	sed -i s#"sambaserver=y"#"sambaserver=n"#g /mnt/config/start-config
 fi
Index: /ipk/source.sh4/network_satipclient/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/network_satipclient/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/network_satipclient/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install satipclient
Index: /ipk/source.sh4/network_satipclient/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/network_satipclient/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/network_satipclient/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	sed 's/satipclient=.*//g' -i /mnt/config/start-config
 	opkg remove satipclient
Index: /ipk/source.sh4/network_xupnpd/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/network_xupnpd/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/network_xupnpd/CONTROL/postinst	(revision 45683)
@@ -7,5 +7,5 @@
 mkdir $INSTDIR/etc/xupnpd/config
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-xupnpd --dest $1
Index: /ipk/source.sh4/network_xupnpd/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/network_xupnpd/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/network_xupnpd/CONTROL/postrm	(revision 45683)
@@ -6,5 +6,5 @@
 rm -rf $INSTDIR/etc/xupnpd >/dev/null 2>&1
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-xupnpd --dest $1
 fi
Index: /ipk/source.sh4/networklib_e2webserv/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/networklib_e2webserv/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/networklib_e2webserv/CONTROL/postinst	(revision 45683)
@@ -2,9 +2,9 @@
 INSTDIR="$1"
 
-if [ -f /mnt/config/usercmd.sh ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	sed -i "/^exit/i$INSTDIR/bin/e2webserv -b -c $INSTDIR/etc/e2webserv.conf" /mnt/config/usercmd.sh
 fi
 
-if [ ! -e $INSTDIR/etc/e2webserv.conf ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	echo "use TPK config file"
 	mv $INSTDIR/etc/e2webserv.conf.e2 $INSTDIR/etc/e2webserv.conf
Index: /ipk/source.sh4/networklib_e2webserv/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/networklib_e2webserv/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/networklib_e2webserv/CONTROL/postrm	(revision 45683)
@@ -4,5 +4,5 @@
 rm -f $INSTDIR/bin/e2webserv
 
-if [ -f /mnt/config/usercmd.sh ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	sed -i '/e2webserv/d' /mnt/config/usercmd.sh
 fi
Index: /ipk/source.sh4/networklib_e2webserv/CONTROL/prerm
===================================================================
--- /ipk/source.sh4/networklib_e2webserv/CONTROL/prerm	(revision 45682)
+++ /ipk/source.sh4/networklib_e2webserv/CONTROL/prerm	(revision 45683)
@@ -5,5 +5,5 @@
 killall -9 e2webserv > /dev/null 2>&1
 
-if [ ! -e "$INSTDIR/etc/e2webserv.conf.e2" ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	echo "remove TPK config file"
 	rm "$INSTDIR/etc/e2webserv.conf"
Index: /ipk/source.sh4/players_gmediarender/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/players_gmediarender/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/players_gmediarender/CONTROL/postinst	(revision 45683)
@@ -5,5 +5,5 @@
 sed s#_path_#"$INSTDIR"#g -i "$PLUGINDIR/run"
 
-if [ "/var" != "$INSTDIR" ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	rm -rf /var/usr/lib/gstreamer-0.10
 	ln -s "$INSTDIR/lib/gstreamer-0.10" /var/usr/lib
Index: /ipk/source.sh4/players_gmediarender/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/players_gmediarender/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/players_gmediarender/CONTROL/postrm	(revision 45683)
@@ -5,5 +5,5 @@
 rm -rf "$PLUGINDIR" >/dev/null 2>&1
 
-if [ "/var" != "$INSTDIR" ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	rm -rf /var/usr/lib/gstreamer-0.10
 fi
Index: /ipk/source.sh4/players_tmc/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/players_tmc/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/players_tmc/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-tmc --dest $1
Index: /ipk/source.sh4/players_tmc/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/players_tmc/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/players_tmc/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-tmc --dest $1
 fi
Index: /ipk/source.sh4/playersnp_dvdplayer/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/playersnp_dvdplayer/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/playersnp_dvdplayer/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-dvdplayer --dest $1
Index: /ipk/source.sh4/playersnp_dvdplayer/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/playersnp_dvdplayer/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/playersnp_dvdplayer/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-dvdplayer --dest $1
 fi
Index: /ipk/source.sh4/playersnp_hbbtv/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/playersnp_hbbtv/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/playersnp_hbbtv/CONTROL/postinst	(revision 45683)
@@ -1,4 +1,4 @@
 #!/bin/sh
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 #	opkg install titan-plugin-hbbtv --dest $1
@@ -15,6 +15,6 @@
 	#model=`cat /etc/model`
 
-	#if [ "$model" = "ufs910" ];then
-	#	if [ -e /var/swapdir/swapfile ] && [ -e /tmp/.tmp60mb ];then
+	#if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+	#	if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	#		echo "umount /tmp (60mb)"
 	#		umount /tmp
Index: /ipk/source.sh4/playersnp_hbbtv/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/playersnp_hbbtv/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/playersnp_hbbtv/CONTROL/postrm	(revision 45683)
@@ -1,4 +1,4 @@
 #!/bin/sh
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 #	opkg remove titan-plugin-hbbtv --dest $1
 	opkg remove webkit-hbbtv-plugin
Index: /ipk/source.sh4/playersnp_hbbtv/CONTROL/preinst
===================================================================
--- /ipk/source.sh4/playersnp_hbbtv/CONTROL/preinst	(revision 45682)
+++ /ipk/source.sh4/playersnp_hbbtv/CONTROL/preinst	(revision 45683)
@@ -7,6 +7,6 @@
 #model=`cat /etc/model`
 
-#if [ "$model" = "ufs910" ];then
-#	if [ -e /var/swapdir/swapfile ];then
+#if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+#	if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 #		echo "mount /tmp (60mb)"
 #		mount -t tmpfs -o remount,size=60m,mode=1777 tmp /tmp
Index: /ipk/source.sh4/tools_IP-Kamera/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_IP-Kamera/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_IP-Kamera/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-instar --dest $1
@@ -9,5 +9,5 @@
 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/instar"
 
-if [ -e /tmp/instar.conf ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];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 45682)
+++ /ipk/source.sh4/tools_IP-Kamera/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];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 45682)
+++ /ipk/source.sh4/tools_IP-Kamera/CONTROL/preinst	(revision 45683)
@@ -3,5 +3,5 @@
 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/instar"
 
-if [ -e "$PLUGINDIR/instar.conf" ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	cp "$PLUGINDIR/instar.conf" /tmp/instar.conf 
 fi
Index: /ipk/source.sh4/tools_autotimer/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_autotimer/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_autotimer/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-autotimer --dest $1
Index: /ipk/source.sh4/tools_autotimer/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_autotimer/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_autotimer/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-autotimer --dest $1
 fi
Index: /ipk/source.sh4/tools_callmonitor/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_callmonitor/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_callmonitor/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-callmonitor1 --dest $1
@@ -9,5 +9,5 @@
 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/callmonitor1"
 
-if [ -e /tmp/callmon.conf ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	mv "$PLUGINDIR/callmon.conf" "$PLUGINDIR/callmon.conf_org"
 	cp /tmp/callmon.conf "$PLUGINDIR/callmon.conf"
Index: /ipk/source.sh4/tools_callmonitor/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_callmonitor/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_callmonitor/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-callmonitor1 --dest $1
 else
Index: /ipk/source.sh4/tools_callmonitor/CONTROL/preinst
===================================================================
--- /ipk/source.sh4/tools_callmonitor/CONTROL/preinst	(revision 45682)
+++ /ipk/source.sh4/tools_callmonitor/CONTROL/preinst	(revision 45683)
@@ -3,5 +3,5 @@
 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/callmonitor1"
 
-if [ -e "$PLUGINDIR/callmon.conf" ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	cp "$PLUGINDIR/callmon.conf" /tmp/callmon.conf 
 fi
Index: /ipk/source.sh4/tools_filemanager/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_filemanager/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_filemanager/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-filemanager --dest $1
Index: /ipk/source.sh4/tools_filemanager/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_filemanager/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_filemanager/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-filemanager --dest $1
 fi
Index: /ipk/source.sh4/tools_keylock/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_keylock/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_keylock/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-keylock --dest $1
Index: /ipk/source.sh4/tools_keylock/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_keylock/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_keylock/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-keylock --dest $1
 fi
Index: /ipk/source.sh4/tools_kravencfg/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_kravencfg/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_kravencfg/CONTROL/postinst	(revision 45683)
@@ -5,5 +5,5 @@
 chmod 755 $INSTDIR/usr/local/share/titan/plugins/kravencfg/kravencfg.sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-kravencfg --dest $1
Index: /ipk/source.sh4/tools_kravencfg/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_kravencfg/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_kravencfg/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-kravencfg --dest $1
 fi
Index: /ipk/source.sh4/tools_lcdpearl1/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_lcdpearl1/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_lcdpearl1/CONTROL/postinst	(revision 45683)
@@ -3,5 +3,5 @@
 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/lcdpearl1" 
 
-if [ `cat /proc/version | grep stm24 | wc -l` -eq 1 ]; then 
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	cd /tmp/stm24 
 else 
@@ -14,5 +14,5 @@
 rm -rf stm23
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-lcdpearl1 --dest $1
Index: /ipk/source.sh4/tools_lcdpearl1/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_lcdpearl1/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_lcdpearl1/CONTROL/postrm	(revision 45683)
@@ -6,5 +6,5 @@
 rm -rf /var/etc/lcd4linux.conf
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-lcdpearl1 --dest $1
 fi
Index: /ipk/source.sh4/tools_lcdsamsung/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_lcdsamsung/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_lcdsamsung/CONTROL/postinst	(revision 45683)
@@ -3,5 +3,5 @@
 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/lcdsamsung" 
 
-if [ -e /tmp/skin.xml_sam ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	mv "$PLUGINDIR/skin.xml" "$PLUGINDIR/skin.xml_org"
 	cp /tmp/skin.xml_sam "$PLUGINDIR/skin.xml"
@@ -9,5 +9,5 @@
 fi
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-lcdsamsung --dest $1
Index: /ipk/source.sh4/tools_lcdsamsung/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_lcdsamsung/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_lcdsamsung/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-lcdsamsung --dest $1
 fi
Index: /ipk/source.sh4/tools_lcdsamsung/CONTROL/preinst
===================================================================
--- /ipk/source.sh4/tools_lcdsamsung/CONTROL/preinst	(revision 45682)
+++ /ipk/source.sh4/tools_lcdsamsung/CONTROL/preinst	(revision 45683)
@@ -3,5 +3,5 @@
 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/lcdsamsung" 
 
-if [ -e "$PLUGINDIR/skin.xml" ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	cp "$PLUGINDIR/skin.xml" /tmp/skin.xml_sam 
 fi
Index: /ipk/source.sh4/tools_optimize/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_optimize/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_optimize/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-optimize --dest $1
Index: /ipk/source.sh4/tools_optimize/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_optimize/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_optimize/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-optimize --dest $1
 fi
Index: /ipk/source.sh4/tools_rgui/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_rgui/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_rgui/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-rgui --dest $1
Index: /ipk/source.sh4/tools_rgui/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_rgui/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_rgui/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-rgui --dest $1
 fi
Index: /ipk/source.sh4/tools_scriptexec/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_scriptexec/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_scriptexec/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-scriptexec --dest $1
Index: /ipk/source.sh4/tools_scriptexec/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_scriptexec/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_scriptexec/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-scriptexec --dest $1
 fi
Index: /ipk/source.sh4/tools_stopifnotused/CONTROL/control
===================================================================
--- /ipk/source.sh4/tools_stopifnotused/CONTROL/control	(revision 45682)
+++ /ipk/source.sh4/tools_stopifnotused/CONTROL/control	(revision 45683)
@@ -3,5 +3,5 @@
 Architecture: sh4
 Section: tools
-Description: Power off if box not used
+Description: Power off if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 Titanname: Stop if not used
 Showname: Stop if not used
Index: /ipk/source.sh4/tools_stopifnotused/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_stopifnotused/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_stopifnotused/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-stopifnotused --dest $1
Index: /ipk/source.sh4/tools_stopifnotused/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_stopifnotused/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_stopifnotused/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-stopifnotused --dest $1
 fi
Index: /ipk/source.sh4/tools_tsschnitt/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_tsschnitt/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_tsschnitt/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-tsschnitt --dest $1
Index: /ipk/source.sh4/tools_tsschnitt/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_tsschnitt/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_tsschnitt/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-tsschnitt --dest $1
 fi
Index: /ipk/source.sh4/tools_usbreset/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_usbreset/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_usbreset/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-usbreset --dest $1
Index: /ipk/source.sh4/tools_usbreset/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_usbreset/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_usbreset/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-usbreset --dest $1
 fi
Index: /ipk/source.sh4/tools_wlandisplay/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_wlandisplay/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_wlandisplay/CONTROL/postinst	(revision 45683)
@@ -3,5 +3,5 @@
 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/wlandisplay" 
 
-if [ -e /tmp/skin.xml_sam ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	mv "$PLUGINDIR/skin.xml" "$PLUGINDIR/skin.xml_org"
 	cp /tmp/skin.xml_sam "$PLUGINDIR/skin.xml"
@@ -9,5 +9,5 @@
 fi
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-wlandisplay --dest $1
Index: /ipk/source.sh4/tools_wlandisplay/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_wlandisplay/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_wlandisplay/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-wlandisplay --dest $1
 fi
Index: /ipk/source.sh4/tools_wlandisplay/CONTROL/preinst
===================================================================
--- /ipk/source.sh4/tools_wlandisplay/CONTROL/preinst	(revision 45682)
+++ /ipk/source.sh4/tools_wlandisplay/CONTROL/preinst	(revision 45683)
@@ -3,5 +3,5 @@
 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/wlandisplay" 
 
-if [ -e "$PLUGINDIR/skin.xml" ]; then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	cp "$PLUGINDIR/skin.xml" /tmp/skin.xml_sam 
 fi
Index: /ipk/source.sh4/tools_zapback/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/tools_zapback/CONTROL/postinst	(revision 45682)
+++ /ipk/source.sh4/tools_zapback/CONTROL/postinst	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg update
 	opkg install titan-plugin-zapback --dest $1
Index: /ipk/source.sh4/tools_zapback/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/tools_zapback/CONTROL/postrm	(revision 45682)
+++ /ipk/source.sh4/tools_zapback/CONTROL/postrm	(revision 45683)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ];then
+if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
 	opkg remove titan-plugin-zapback --dest $1
 fi
