source:
ipk/source.sh4/network_samba/CONTROL/postinst@
24447
| Last change on this file since 24447 was 24447, checked in by , 12 years ago | |
|---|---|
| File size: 365 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | INSTDIR="$1" |
| 3 | |
| 4 | if [ "$INSTDIR" != "/var" ]; then |
| 5 | ln -snf "$INSTDIR/bin/smbd" /var/bin/smbd |
| 6 | ln -snf "$INSTDIR/bin/nmbd" /var/bin/nmbd |
| 7 | fi |
| 8 | |
| 9 | ln -snf /var/etc/smb.conf /var/etc/samba/smb.conf |
| 10 | |
| 11 | if [ -f /mnt/config/start-config ]; then |
| 12 | sed -i s#"sambaserver=n"#"sambaserver=y"#g /mnt/config/start-config |
| 13 | fi |
| 14 | |
| 15 | /var/bin/smbd -D; sleep 1; /var/bin/nmbd -D |
| 16 | |
| 17 | exit 0 |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)