how to reboot but leave same kernel (tell pid 1 to run /linuxrc again)?

Luciano Rocha strange at nsk.no-ip.org
Wed Nov 21 18:25:02 UTC 2007


On Wed, Nov 21, 2007 at 05:51:38PM +0100, Frantisek Dufka wrote:
>  Luciano Rocha wrote:
> > In inittab, add something like:
> > ::restart:/sbin/init
> > Then kill init with signal QUIT:
> > kill -QUIT 1
> > Then init will execute the program at /sbin/init, that can be a symlink
> > to /linuxrc in your mtdblock3, or change the inittab directoy.
> 
>  Thanks but isn't this used and meant for something else (like when init 
>  restarts itself on upgrade) so this may actually happen and should be left 
>  alone pointing to real init?

Yes, but when you pivot_root to the mtdblock3, the sbin/init can be
whatever you want without messing with the real one. So create there a
link from sbin/init to /linuxrc

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20071121/028f835b/attachment-0002.pgp 


More information about the busybox mailing list