[BusyBox] Live updating busybox?

Jean-Christophe Dubois jdubois at mc.com
Mon Nov 17 18:26:01 UTC 2003


I guess a reboot will be required anyway if you are using "init" from
busybox as, if I am not mistaken, there is no way (that I know of) to
really get rid of this running "root" process without rebooting your
box.

JC

On Mon, 2003-11-17 at 14:48, Steven Scholz wrote:
> Hi there,
> 
> I am using busybox in embedded systems and want to update it.
> 
> I understand the just overwriting the busybox binary could cause some
> trouble.
> 
> One suggestion I got was to store the new version of busybox in let's
> say 
> /bin/busybox.new and then "mv /bin/busybox.new /bin/busybox" where
> "mv" must not 
> be the busybox applet but a standalone binary.
> 
> So I have a few more questions:
> 
> 1.) If I do the copy and move in a shell script, then this script
> would be
>      executed by (the old version of) busybox ash. But what happends
> when I
>      replace the busybox binary which is actually just executing  the
> shell
>      script?
> 
> 2.) Should I kill busybox inetd, httpd, telnetd etc before updating
> busybox?
> 
> 3.) When updating busybox, is it better to have soft- or hardlinks to
>      /bin/busybox for all the applications?
> 
> Thanks a million!
> 
> Steven
> 
> 
> _______________________________________________
> busybox mailing list
> busybox at mail.busybox.net
> http://busybox.net/mailman/listinfo/busybox
-- 
Jean-Christophe Dubois <jdubois at mc.com>
Mercury Computer Systems




More information about the busybox mailing list