I putting the following (changed un/pw/hostname) in the
autorun bash script on the Administration->AutoRun Bash
Script:
echo "#!/bin/sh" > /tmp/upd
echo "ez-ipupdate --service-type=dyndns
--user=<username>:<pw> --host=<hostname>.homeip.net
--address=24.20.10.00 -b /tmp/ddns.cache" >>/tmp/upd
chmod 777 /tmp/upd
echo "*/5 * * * * root /tmp/upd" >/tmp/cron.d/update
This creates a file/cron tab named update in
/tmp/cron.d and a bash script named upd in /tmp. I
verfied that the resulting bash script (/tmp/upd) runs
properly, but the cron job does not seem to be running.
I also verfied that the cron tab (update) is present
and looks correct. Is cron working properly on this
firmware?
Please help.
thanks.
-ck
Logged In: NO
try to restart cron
kill `cat /var/run/cron.pid`
Logged In: NO
killed and restarted cron. did not help.
Can someone verify with some test script that cron works on
this build? Or if it is just me :)
thanks.
Logged In: YES
user_id=879879
Hello,
First, I might be wrong, but DynDNS is available from the
standard WEB interface, and you don't have to create any
cron job to update your dyndns ip!
Don't put the "#!/bin/sh" statement and start with a sleep 20.
Here is my init_script variable:
init_script=sleep 20
echo "0 3 * * * root /bin/kill `/bin/cat /var/run/ppp0.pid`"
> /etc/cron.d/kill-ppp0
/bin/kill `/bin/cat/var/run/crond.pid`
/usr/sbin/cron