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

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

[TPK samba] update control files

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