Index: ipk/source.sh4/network_samba/CONTROL/control
===================================================================
--- ipk/source.sh4/network_samba/CONTROL/control	(revision 23768)
+++ ipk/source.sh4/network_samba/CONTROL/control	(revision 24435)
@@ -1,5 +1,5 @@
 Package: enigma2-plugin-network-samba
 Version: 3.028
-Description: Samba 
+Description: Samba
 Section: network
 Architecture: sh4
Index: ipk/source.sh4/network_samba/CONTROL/postinst
===================================================================
--- ipk/source.sh4/network_samba/CONTROL/postinst	(revision 23768)
+++ ipk/source.sh4/network_samba/CONTROL/postinst	(revision 24435)
@@ -5,9 +5,17 @@
 	rm -rf /var/bin/smbd
 	rm -rf /var/bin/nmbd
-	ln -s "$INSTDIR/bin/smbd /var/bin/smbd"
-	ln -s "$INSTDIR/bin/nmbd /var/bin/nmbd"
+	ln -s "$INSTDIR/bin/smbd" /var/bin/smbd
+	ln -s "$INSTDIR/bin/nmbd" /var/bin/nmbd
 fi
 
 ln -snf /var/etc/smb.conf /var/etc/samba/smb.conf
 
+if [ -f /mnt/config/start-config ]; then
+	echo "activate samba..."
+	sed -i s#"sambaserver=n"#"sambaserver=y"#g /mnt/config/start-config
+fi
+
+echo "start samba..."
+/var/bin/smbd -D; sleep 1; /var/bin/nmbd -D
+
 exit 0
Index: ipk/source.sh4/network_samba/CONTROL/postrm
===================================================================
--- ipk/source.sh4/network_samba/CONTROL/postrm	(revision 23768)
+++ ipk/source.sh4/network_samba/CONTROL/postrm	(revision 24435)
@@ -1,3 +1,8 @@
 #!/bin/sh
 
+if [ -f /mnt/config/start-config ]; then
+	echo "deactivate samba..."
+	sed -i s#"sambaserver=y"#"sambaserver=n"#g /mnt/config/start-config
+fi
+
 exit 0
Index: ipk/source.sh4/network_samba/CONTROL/prerm
===================================================================
--- ipk/source.sh4/network_samba/CONTROL/prerm	(revision 23768)
+++ ipk/source.sh4/network_samba/CONTROL/prerm	(revision 24435)
@@ -1,3 +1,7 @@
 #!/bin/sh
 
+echo "kill samba if running"
+killall -9 smbd > /dev/null 2>&1
+killall -9 nmbd > /dev/null 2>&1
+
 exit 0
