What's new

Best way to replace a binary

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

darkfinger

Occasional Visitor
Hi
I am making changes to some code but feel nervous about rebuilding the entire code base. Is there a best practice on how to change a binary, perhaps by copying it from jffs at boot? Btw it's code for wan dhcp.

Many thanks

Dave
 
Just as an example:
Code:
cp -r /usr/ /tmp
mount -o bind /tmp/usr /usr
Now you can change any binary in /tmp/usr, all changes will be reflected at /usr.
 

Latest threads

Sign Up For SNBForums Daily Digest

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