Index: ipk/source.sh4/network_samba/CONTROL/postinst
===================================================================
--- ipk/source.sh4/network_samba/CONTROL/postinst	(revision 38192)
+++ 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
