update a running busybox

Arno Steffen arno.steffen at googlemail.com
Tue Apr 5 10:56:56 UTC 2011


2011/3/29 Harald Becker <ralda at gmx.de>:
>  Hallo Ralf!
>
>> You can try
>>
>> ln /bin/busybox /bin/busybox.old
>> mv busybox /bin/busybox
>>
>> Then remove /bin/busybox.old after the next reboot.
>
> That is the best way to replace any running executable in place, but
> doesn't solve the "Device busy" problem in all cases (that even arise
> due to other actions, not only Busybox update). As those problems are a
> mess on flash file systems, I focused on the reboot question ... but
> otherwise you are right. You can even remove busybox.old right after the
> move, it than gets deleted on shutdown automatically.
>
> --
> Harald
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
>

I cannot confirm that remove of busybox_old is working before reboot.
In this case your device will keep busy and it is impossible to
remount in read-only.
That's pity, as I like this method.
Regards
Arno


More information about the busybox mailing list