| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | INSTDIR="$1"
|
|---|
| 3 |
|
|---|
| 4 | echo INSTDIR: $INSTDIR
|
|---|
| 5 |
|
|---|
| 6 | if [ "$INSTDIR" != "/var" ]; then
|
|---|
| 7 | ln -snf "$INSTDIR/bin/smbd" /var/bin/smbd
|
|---|
| 8 | ln -snf "$INSTDIR/bin/nmbd" /var/bin/nmbd
|
|---|
| 9 | fi
|
|---|
| 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 | if [ -e /mnt/config/smb.conf ]; then
|
|---|
| 16 | mv -f /mnt/config/smb.conf /mnt/backup/smb.conf
|
|---|
| 17 | cp /etc/titan.restore/mnt/config/smb.conf /mnt/config/smb.conf
|
|---|
| 18 | fi
|
|---|
| 19 |
|
|---|
| 20 | /var/bin/smbd -D -s /mnt/config/smb.conf; sleep 1; /var/bin/nmbd -D -s /mnt/config/smb.conf
|
|---|
| 21 |
|
|---|
| 22 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.