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

How to make a minor javascript change

padukes

New Around Here
Hi,

I'd like to test out a minor javascript change. Do I need to rebuild the entire firmware or is there a way I can simply update the one file I want to test?

Thanks!
P
 
Hi,

I'd like to test out a minor javascript change. Do I need to rebuild the entire firmware or is there a way I can simply update the one file I want to test?

Thanks!
P

The flash is read-only, you cannot modify its content.

However, you can mount bind a file on top of another one. If for example you modify state.js, put the modified copy in /jffs, then mount bind it:

Code:
mount -o bind /jffs/state.js /www/state.js

From then on (until next reboot), the web server will use your modified copy. You can also keep modifying it while it's already mounted.
 

Similar 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