source: ipk/source.sh4/network_samba/CONTROL/postinst@ 24435

Last change on this file since 24435 was 24435, checked in by tobayer, 13 years ago

[TPK samba] fix & optimize control files

File size: 453 bytes
RevLine 
[13993]1#!/bin/sh
[23439]2INSTDIR="$1"
[13993]3
[23627]4if [ "/var" != "$INSTDIR" ]; then
5 rm -rf /var/bin/smbd
6 rm -rf /var/bin/nmbd
[24435]7 ln -s "$INSTDIR/bin/smbd" /var/bin/smbd
8 ln -s "$INSTDIR/bin/nmbd" /var/bin/nmbd
[23627]9fi
[14724]10
[23439]11ln -snf /var/etc/smb.conf /var/etc/samba/smb.conf
[13993]12
[24435]13if [ -f /mnt/config/start-config ]; then
14 echo "activate samba..."
15 sed -i s#"sambaserver=n"#"sambaserver=y"#g /mnt/config/start-config
16fi
17
18echo "start samba..."
19/var/bin/smbd -D; sleep 1; /var/bin/nmbd -D
20
21exit 0
Note: See TracBrowser for help on using the repository browser.