Index: ipk/source.sh4/networklib_e2webserv/CONTROL/postinst
===================================================================
--- ipk/source.sh4/networklib_e2webserv/CONTROL/postinst	(revision 45683)
+++ ipk/source.sh4/networklib_e2webserv/CONTROL/postinst	(revision 45684)
@@ -2,9 +2,9 @@
 INSTDIR="$1"
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ -f /mnt/config/usercmd.sh ]; then
 	sed -i "/^exit/i$INSTDIR/bin/e2webserv -b -c $INSTDIR/etc/e2webserv.conf" /mnt/config/usercmd.sh
 fi
 
-if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
+if [ ! -e $INSTDIR/etc/e2webserv.conf ]; then
 	echo "use TPK config file"
 	mv $INSTDIR/etc/e2webserv.conf.e2 $INSTDIR/etc/e2webserv.conf
