DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-03-24 15:22:26

bruor
Member
Registered: 2009-01-28
Posts: 15

DNS-323 crontab clears itself

Hello,

I am using FFP .5 and have come across a very odd issue.  the device cron seems to completely clear itself (not sure how often yet)

I have created a script that overwrites the crontab for root on startup with the contents of crontab.txt.  the script (loadcron.sh) look like this:

Code:

#!/bin/sh

CRONTXT=/mnt/HD_a2/ffp/etc/crontab.txt

# if crontab file exists on disk
if [ -e /mnt/HD_a2/ffp/etc/crontab.txt ]; then
        # install the new crontab
        /bin/crontab $CRONTXT
else
        # else dump existing cron to disk
        /bin/crontab -l > $CRONTXT
fi

and the contents of the crontab.txt are:

Code:

32 2 * * * /usr/sbin/rtc -s
30 2 2 * * /usr/sbin/rtc -c
59 1 * * * /usr/sbin/daylight &
*/10 * * * * /usr/sbin/offl_chk two &
*/60 * * * * /usr/sbin/getdhcp&
0 2 * * * /mnt/HD_a2/backupscript.sh
0 6 * * * /ffp/start/ntpd.sh restart

I have verified that on bootup the crontab is modified successfully but it always clears itself completely sooner or later.

Does anyone have any ideas?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB