What's new

JFFS Scripts Disappear on Reboot

  • 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!

Pegasus9

Regular Contributor
Trying to create a nat-start script, but every time I reboot the router, the script vanishes. Have tried placing it in a JFFS/Scripts and even root -- the result is the same.

I have a : RT-AC5300 using 380.70_beta1-gc8353dc
 
Check the spelling of your path names, they are case sensitive. So it's not "JFFS/Scripts", it's "/jffs/scripts".

Code:
admin@RT-AC68U:/tmp/home/root# cd /jffs/scripts/
admin@RT-AC68U:/jffs/scripts#
 
Further you may want to format /jffs first.
 
Check the spelling of your path names, they are case sensitive. So it's not "JFFS/Scripts", it's "/jffs/scripts".

Code:
admin@RT-AC68U:/tmp/home/root# cd /jffs/scripts/
admin@RT-AC68U:/jffs/scripts#

Verified pathnames upon creation. Tried all lower, all upper, mixed -- and none -- It always wipes our the directory.
 
It always wipes our the directory.
There's something strange going on here. You don't need to create the directory yourself, the router does that for you. Also, you said you had tried placing things in root - that should not be possible because root is a read-only filesystem.

Are you absolutely sure you're not putting the files under /tmp or your home directory.
 
I would normally agree, but I am not familiar enough with the Merlin firmware to know.

Using WinSCP to create and view the JFFS and PuTTY to change the file.
 
OK, now I feel stupid -- reread your message and at some point WinSCP went into the tmp and I did not catch/verify it. Duh.

Thanks!
 
Last edited:
Thanks. Did so -- checked format on reboot and then rebooted before I did anything else.
Sometimes you need to do this twice - had the same issue in the past. :rolleyes:
 

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