update a running busybox

Arno Steffen arno.steffen at googlemail.com
Wed Mar 30 08:14:17 UTC 2011


2011/3/29 Ralf Friedl <Ralf.Friedl at online.de>:
> Arno Steffen wrote:
>>
>> How can I exchange a busybox while the system is running? I have to
>> use some kind of update script:
>>
>> #!/bin/sh
>> mount -w -o remount /
>> ...
>> if [ -f busybox ] ; then
>>        chmod 4755 busybox
>>        mv busybox /bin
>> fi
>> ...
>> mount -r -o remount /
>> reboot
>
> You can try
>
> ln /bin/busybox /bin/busybox.old
> mv busybox /bin/busybox
>
> Then remove /bin/busybox.old after the next reboot.
>
> Ralf
>

Thanks for your help. I have tried Ralfs approach and it works. Just
for my understanding (I like to learn more) : can you explain why this
works? This is not very clear to me. But anyhow, thanks both of you
for your answers.

Regards
Arno


More information about the busybox mailing list