What's new

need help with cron job

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Grievous Angel

Regular Contributor
I feel like I'm missing something. I just backed up from the latest semi-official ASUS firmware (372 I think) to the latest Merlin Beta because I want to run a cron job that will restart my wifi every morning (to work around the 5g signal drop).

The update seems to go OK--and even creating the cron job seems to work, it's the reboot that goes wrong. When I reboot, "crontab -l" shows no jobs--and the file I created is gone.

Here are the steps I took:

Installed Merlin's latest beta firmware, then did a factory reset.

Enabled JFFS partition and format on reboot, then rebooted the router.

Ensured the "format on reboot" setting was off after the reboot.

Created a file in /jffs/scripts to create the cron job (per vdemarco's instructions) to run the "restart_wireless" at 5 AM every day.

I ran that file manually. When I do a crontab -l it shows up.

However, when I reboot, the crontab -l shows no jobs, and the file I created in /jffs/scripts is gone.

By the way I was using telnet not SSH . . not sure why I'd use one over the other but I'm not familiar with ssh.

What am I missing? (thanks)
 
Last edited:
There's currently an issue where the JFFS partition can get reformatted at boot time. You have to manually clear the flag, and commit it back to flash:

Code:
nvram set jffs2_format=0
nvram commit

If that doesn't work, then do one more full format:

Code:
nvram set jffs2_format=1
nvram commit
reboot

And after reboot, set the flag back to 0 and commit it.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top