How to reboot the system if busybox run as init
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Fri Nov 30 18:21:38 UTC 2012
On Fri, 30 Nov 2012, Harald Becker wrote:
>
> >So I just want know, is there a way to let busybox reboot my system by,
> >for example, passing it with a kind of argument?
>
> What about "reboot -f" ? ... this shall do the job, but does not
> flush buffers or unmount file systems. So it is your job to avoid file
> system damages due to data lose.
>
> I prefer the following command sequence in that situation:
>
> sync && sleep 1 && reboot -f
But, there should be an 'init 6' around too, shouldn't it?
Check up the config for:
CONFIG_FEATURE_CALL_TELINIT=y
CONFIG_TELINIT_PATH="/sbin/init"
too.
Cheers,
--
Cristian
More information about the busybox
mailing list