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

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

[TPK samba] fix & optimize control files

File size: 453 bytes
Line 
1#!/bin/sh
2INSTDIR="$1"
3
4if [ "/var" != "$INSTDIR" ]; then
5 rm -rf /var/bin/smbd
6 rm -rf /var/bin/nmbd
7 ln -s "$INSTDIR/bin/smbd" /var/bin/smbd
8 ln -s "$INSTDIR/bin/nmbd" /var/bin/nmbd
9fi
10
11ln -snf /var/etc/smb.conf /var/etc/samba/smb.conf
12
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.