How to disable the automatic update of smb.conf, proftpd.conf, Applevolumes.default
From NAS-Central Buffalo - The Linkstation Wiki
(Difference between revisions)
Mindbender (Talk | contribs) (added page about how to disable the automatic updating of the config files on OpenLink/STock firmware) |
m |
||
| Line 1: | Line 1: | ||
| + | {{Articles|OpenLink|LS1|LS2|HG|HS}} | ||
Can anyone please confirm that chkshare or mkshare.sh are existing on the terastation & terastation pro? (i suppose chkshare will be there...i want to add the categories) if this files are there then this is valid for all terastations..even if only telnet access is available. | Can anyone please confirm that chkshare or mkshare.sh are existing on the terastation & terastation pro? (i suppose chkshare will be there...i want to add the categories) if this files are there then this is valid for all terastations..even if only telnet access is available. | ||
| - | + | :'''/etc/init.d/chkshare''' is responsible for updating the files on '''ppc-based boxes''' | |
| - | + | :'''/etc/init.d/mkshare.sh''' is responsible for updating the files on the '''LS2 (MIPS)''' | |
| - | '''/etc/init.d/chkshare''' is responsible for updating the files on '''ppc-based boxes''' | + | |
| - | + | ||
| - | '''/etc/init.d/mkshare.sh''' is responsible for updating the files on the '''LS2 (MIPS)''' | + | |
| - | + | ||
#!/bin/sh | #!/bin/sh | ||
PATH=/sbin:/bin:/usr/sbin:/usr/bin | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
| Line 11: | Line 8: | ||
if [ -x /bin/mkcode ]; then | if [ -x /bin/mkcode ]; then | ||
echo "Netatalk configration file generating..." | echo "Netatalk configration file generating..." | ||
| - | + | # The next line is all we need to comment out for disabling the update of AppleVolumes.default | |
| - | /bin/mkcode -a > /dev/null | + | <font color=red>/bin/mkcode -a > /dev/null</font> |
/bin/nkf -sEO /etc/atalk/AppleVolumes.default /tmp/AppleVolumes | /bin/nkf -sEO /etc/atalk/AppleVolumes.default /tmp/AppleVolumes | ||
mv -f /tmp/AppleVolumes /etc/atalk/AppleVolumes.default | mv -f /tmp/AppleVolumes /etc/atalk/AppleVolumes.default | ||
echo "Samba configration file generating..." | echo "Samba configration file generating..." | ||
| - | + | # The next line is all we need to comment out for disabling the update of smb.conf.conf | |
| - | /bin/mkcode -s > /dev/null | + | <font color=red>/bin/mkcode -s > /dev/null</font> |
/bin/nkf -sEO /etc/samba/smb.conf /tmp/smb.conf | /bin/nkf -sEO /etc/samba/smb.conf /tmp/smb.conf | ||
mv -f /tmp/smb.conf /etc/samba/smb.conf | mv -f /tmp/smb.conf /etc/samba/smb.conf | ||
| Line 24: | Line 21: | ||
echo "FTP configration file generating..." | echo "FTP configration file generating..." | ||
# The next line is all we need to comment out for disabling the update of proftpd.conf | # The next line is all we need to comment out for disabling the update of proftpd.conf | ||
| - | /bin/mkcode -f > /dev/null | + | <font color=red>/bin/mkcode -f > /dev/null</font> |
/bin/nkf -sEO /etc/wu-ftpd/ftpaccess /tmp/ftpaccess | /bin/nkf -sEO /etc/wu-ftpd/ftpaccess /tmp/ftpaccess | ||
mv -f /tmp/ftpaccess /etc/wu-ftpd/ftpaccess | mv -f /tmp/ftpaccess /etc/wu-ftpd/ftpaccess | ||
/bin/nkf -sEO /etc/proftpd.conf /tmp/proftpd.conf | /bin/nkf -sEO /etc/proftpd.conf /tmp/proftpd.conf | ||
mv -f /tmp/proftpd.conf /etc/proftpd.conf | mv -f /tmp/proftpd.conf /etc/proftpd.conf | ||
| - | fi | + | fi |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
Revision as of 15:14, 25 August 2006
Can anyone please confirm that chkshare or mkshare.sh are existing on the terastation & terastation pro? (i suppose chkshare will be there...i want to add the categories) if this files are there then this is valid for all terastations..even if only telnet access is available.
- /etc/init.d/chkshare is responsible for updating the files on ppc-based boxes
- /etc/init.d/mkshare.sh is responsible for updating the files on the LS2 (MIPS)
#!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
# generate configuration files
if [ -x /bin/mkcode ]; then
echo "Netatalk configration file generating..."
# The next line is all we need to comment out for disabling the update of AppleVolumes.default
/bin/mkcode -a > /dev/null
/bin/nkf -sEO /etc/atalk/AppleVolumes.default /tmp/AppleVolumes
mv -f /tmp/AppleVolumes /etc/atalk/AppleVolumes.default
echo "Samba configration file generating..."
# The next line is all we need to comment out for disabling the update of smb.conf.conf
/bin/mkcode -s > /dev/null
/bin/nkf -sEO /etc/samba/smb.conf /tmp/smb.conf
mv -f /tmp/smb.conf /etc/samba/smb.conf
echo "FTP configration file generating..."
# The next line is all we need to comment out for disabling the update of proftpd.conf
/bin/mkcode -f > /dev/null
/bin/nkf -sEO /etc/wu-ftpd/ftpaccess /tmp/ftpaccess
mv -f /tmp/ftpaccess /etc/wu-ftpd/ftpaccess
/bin/nkf -sEO /etc/proftpd.conf /tmp/proftpd.conf
mv -f /tmp/proftpd.conf /etc/proftpd.conf
fi

