All this additional complexity puzzles me as I've always done it the easy way (and it works on both my TS-219P+ and TS-659 Pro):
First, I copy the existing crontab to a share
cp /etc/config/crontab /share/Public
I then edit it using Notepad++
I then do the below (still being at /etc/config) to remove the one in /etc/config, then replace it with my modified one, then restart the crond.sh:
cp /share/Public/crontab .
The only thing that would be re-written (if you changed it) is the /etc/init.d/backup_conf.sh line - if you change that one, it changes it back again - but the rest of them seem to persist.
# m h dom m dow cmd
3 3 * * * /sbin/vs_refresh
3 3 * * * /sbin/clean_reset_pwd
2 3 * * * /sbin/hwclock -s
3 3 * * * /etc/init.d/idmap.sh dump
# 0-59/15 * * * * /etc/init.d/nss2_dusg.sh
4 3 * * 3 /etc/init.d/backup_conf.sh
Out of curiosity, a new entry has appeared since I updated to 3.7.3 (nss2_dusg.sh); does anyone know what it does? [Edit: Just found out that it's surveillance station, which I don't use, so I've #'d it out; if you just delete it, it pops back after a reboot, but using # in front of it - as shown above - survives a reboot].
Last edited by Briain
on Sun Aug 12, 2012 5:34 pm, edited 2 times in total.