Index: ipk/source.sh4/browser_netsurf/CONTROL/postrm
===================================================================
--- ipk/source.sh4/browser_netsurf/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/browser_netsurf/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -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/postrm
===================================================================
--- ipk/source.sh4/games_catcatch/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/games_catcatch/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-games-catcatch --dest $1
 fi
Index: ipk/source.sh4/games_sudoku/CONTROL/postrm
===================================================================
--- ipk/source.sh4/games_sudoku/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/games_sudoku/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-games-sudoku --dest $1
 fi
Index: ipk/source.sh4/games_wins3/CONTROL/postrm
===================================================================
--- ipk/source.sh4/games_wins3/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/games_wins3/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-games-wins3 --dest $1
 fi
Index: ipk/source.sh4/infos_imdb/CONTROL/postrm
===================================================================
--- ipk/source.sh4/infos_imdb/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/infos_imdb/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-imdb --dest $1
 fi
Index: ipk/source.sh4/infos_imdbapi/CONTROL/postrm
===================================================================
--- ipk/source.sh4/infos_imdbapi/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/infos_imdbapi/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-imdbapi --dest $1
 fi
Index: ipk/source.sh4/infos_news/CONTROL/postrm
===================================================================
--- ipk/source.sh4/infos_news/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/infos_news/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-news --dest $1
 fi
Index: ipk/source.sh4/infos_stock/CONTROL/postrm
===================================================================
--- ipk/source.sh4/infos_stock/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/infos_stock/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-stock --dest $1
 fi
Index: ipk/source.sh4/infos_streaminfo/CONTROL/postrm
===================================================================
--- ipk/source.sh4/infos_streaminfo/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/infos_streaminfo/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-streaminfo --dest $1
 fi
Index: ipk/source.sh4/infos_tmdb/CONTROL/postrm
===================================================================
--- ipk/source.sh4/infos_tmdb/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/infos_tmdb/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tmdb --dest $1
 fi
Index: ipk/source.sh4/infos_weather/CONTROL/postrm
===================================================================
--- ipk/source.sh4/infos_weather/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/infos_weather/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-weather --dest $1
 fi
Index: ipk/source.sh4/infos_wm2018/CONTROL/postrm
===================================================================
--- ipk/source.sh4/infos_wm2018/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/infos_wm2018/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-wm2018 --dest $1
 fi
Index: ipk/source.sh4/network_dlna/CONTROL/postrm
===================================================================
--- ipk/source.sh4/network_dlna/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/network_dlna/CONTROL/postrm	(revision 46250)
@@ -5,5 +5,5 @@
 rm -rf "$PLUGINDIR" >/dev/null 2>&1
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove minidlna --dest $1
 fi
Index: ipk/source.sh4/network_facebook/CONTROL/postrm
===================================================================
--- ipk/source.sh4/network_facebook/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/network_facebook/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-network-facebook --dest $1
 fi
Index: ipk/source.sh4/network_ipsec/CONTROL/postrm
===================================================================
--- ipk/source.sh4/network_ipsec/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/network_ipsec/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -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/postrm
===================================================================
--- ipk/source.sh4/network_minisatip/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/network_minisatip/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -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/postrm
===================================================================
--- ipk/source.sh4/network_networkbrowser/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/network_networkbrowser/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-network-networkbrowser --dest $1
 fi
Index: ipk/source.sh4/network_satipclient/CONTROL/postrm
===================================================================
--- ipk/source.sh4/network_satipclient/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/network_satipclient/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -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/postrm
===================================================================
--- ipk/source.sh4/network_xupnpd/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/network_xupnpd/CONTROL/postrm	(revision 46250)
@@ -6,5 +6,5 @@
 rm -rf $INSTDIR/etc/xupnpd >/dev/null 2>&1
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-network-xupnpd --dest $1
 fi
Index: ipk/source.sh4/players_tmc/CONTROL/postrm
===================================================================
--- ipk/source.sh4/players_tmc/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/players_tmc/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-player-tmc --dest $1
 fi
Index: ipk/source.sh4/playersnp_dvdplayer/CONTROL/postrm
===================================================================
--- ipk/source.sh4/playersnp_dvdplayer/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/playersnp_dvdplayer/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-player-dvdplayer --dest $1
 fi
Index: ipk/source.sh4/playersnp_hbbtv/CONTROL/postrm
===================================================================
--- ipk/source.sh4/playersnp_hbbtv/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/playersnp_hbbtv/CONTROL/postrm	(revision 46250)
@@ -1,4 +1,4 @@
 #!/bin/sh
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 #	opkg remove titan-plugin-player-hbbtv --dest $1
 	opkg remove webkit-hbbtv-plugin
Index: ipk/source.sh4/tools_IP-Kamera/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_IP-Kamera/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_IP-Kamera/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-instar --dest $1
 else
Index: ipk/source.sh4/tools_autotimer/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_autotimer/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_autotimer/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-autotimer --dest $1
 fi
Index: ipk/source.sh4/tools_callmonitor/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_callmonitor/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_callmonitor/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-callmonitor1 --dest $1
 else
Index: ipk/source.sh4/tools_filemanager/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_filemanager/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_filemanager/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-filemanager --dest $1
 fi
Index: ipk/source.sh4/tools_keylock/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_keylock/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_keylock/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-keylock --dest $1
 fi
Index: ipk/source.sh4/tools_kravencfg/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_kravencfg/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_kravencfg/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-kravencfg --dest $1
 fi
Index: ipk/source.sh4/tools_lcdpearl1/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_lcdpearl1/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_lcdpearl1/CONTROL/postrm	(revision 46250)
@@ -6,5 +6,5 @@
 rm -rf /var/etc/lcd4linux.conf
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-lcdpearl1 --dest $1
 fi
Index: ipk/source.sh4/tools_lcdsamsung/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_lcdsamsung/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_lcdsamsung/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-lcdsamsung --dest $1
 fi
Index: ipk/source.sh4/tools_optimize/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_optimize/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_optimize/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-optimize --dest $1
 fi
Index: ipk/source.sh4/tools_rgui/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_rgui/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_rgui/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-rgui --dest $1
 fi
Index: ipk/source.sh4/tools_scriptexec/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_scriptexec/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_scriptexec/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-scriptexec --dest $1
 fi
Index: ipk/source.sh4/tools_stopifnotused/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_stopifnotused/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_stopifnotused/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-stopifnotused --dest $1
 fi
Index: ipk/source.sh4/tools_tsschnitt/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_tsschnitt/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_tsschnitt/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-tsschnitt --dest $1
 fi
Index: ipk/source.sh4/tools_usbreset/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_usbreset/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_usbreset/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-usbreset --dest $1
 fi
Index: ipk/source.sh4/tools_wlandisplay/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_wlandisplay/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_wlandisplay/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-wlandisplay --dest $1
 fi
Index: ipk/source.sh4/tools_zapback/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_zapback/CONTROL/postrm	(revision 46249)
+++ ipk/source.sh4/tools_zapback/CONTROL/postrm	(revision 46250)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
 	opkg remove titan-plugin-tools-zapback --dest $1
 fi
