Index: /ipk/source.sh4/network_samba/CONTROL/control
===================================================================
--- /ipk/source.sh4/network_samba/CONTROL/control	(revision 24446)
+++ /ipk/source.sh4/network_samba/CONTROL/control	(revision 24447)
@@ -1,6 +1,6 @@
 Package: enigma2-plugin-network-samba
 Version: 3.028
+Architecture: sh4
+Section: network
 Description: Samba
-Section: network
-Architecture: sh4
 Showname: Samba (Server)
Index: /ipk/source.sh4/network_samba/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/network_samba/CONTROL/postinst	(revision 24446)
+++ /ipk/source.sh4/network_samba/CONTROL/postinst	(revision 24447)
@@ -2,9 +2,7 @@
 INSTDIR="$1"
 
-if [ "/var" != "$INSTDIR" ]; then
-	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
+if [ "$INSTDIR" != "/var" ]; then
+	ln -snf "$INSTDIR/bin/smbd" /var/bin/smbd
+	ln -snf "$INSTDIR/bin/nmbd" /var/bin/nmbd
 fi
 
@@ -12,9 +10,7 @@
 
 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
 
Index: /ipk/source.sh4/network_samba/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/network_samba/CONTROL/postrm	(revision 24446)
+++ /ipk/source.sh4/network_samba/CONTROL/postrm	(revision 24447)
@@ -1,6 +1,11 @@
 #!/bin/sh
+INSTDIR="$1"
+
+if [ "$INSTDIR" != "/var" ]; then
+	rm -rf /var/bin/smbd > /dev/null 2>&1
+	rm -rf /var/bin/nmbd > /dev/null 2>&1
+fi
 
 if [ -f /mnt/config/start-config ]; then
-	echo "deactivate samba..."
 	sed -i s#"sambaserver=y"#"sambaserver=n"#g /mnt/config/start-config
 fi
Index: /ipk/source.sh4/network_samba/CONTROL/prerm
===================================================================
--- /ipk/source.sh4/network_samba/CONTROL/prerm	(revision 24446)
+++ /ipk/source.sh4/network_samba/CONTROL/prerm	(revision 24447)
@@ -1,5 +1,4 @@
 #!/bin/sh
 
-echo "kill samba if running"
 killall -9 smbd > /dev/null 2>&1
 killall -9 nmbd > /dev/null 2>&1
