Changeset 33566


Ignore:
Timestamp:
Mar 3, 2015, 10:32:20 PM (11 years ago)
Author:
Stephan
Message:

force new smb.conf, backup old

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/network_samba/CONTROL/postinst

    r33541 r33566  
    1010        sed -i s#"sambaserver=n"#"sambaserver=y"#g /mnt/config/start-config
    1111fi
    12 cp -b /etc/titan.restore/mnt/config/smb.conf /mnt/config/smb.conf
     12
     13if [ -e /mnt/config/smb.conf ]; then
     14        mv -f /mnt/config/smb.conf /mnt/config/smb.conf.backup
     15        cp /etc/titan.restore/mnt/config/smb.conf /mnt/config/smb.conf
     16fi
    1317
    1418/var/bin/smbd -D -s /mnt/config/smb.conf; sleep 1; /var/bin/nmbd -D -s /mnt/config/smb.conf
Note: See TracChangeset for help on using the changeset viewer.