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