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

Last change on this file since 33570 was 33570, checked in by Stephan, 11 years ago

force smb.conf

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