On Wednesday 21 November 2007 10:25, Luciano Rocha wrote:
> 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

Why bother with links? Use 

::restart:/whatever/you/want

/whatever/you/want can do "exec /sbin/init", if needed, even conditionally.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to