What's new

Best way to replace a binary

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.
 

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!

Members online

Back
Top