Subject: Re: which init? (Was Re: HEADS UP: fully dynamic linked system now the default)
To: William Waites <ww@styx.org>
From: Steven M. Bellovin <smb@research.att.com>
List: current-users
Date: 09/30/2002 17:39:52
In message <867kh3w493.fsf@styx.org>, William Waites writes:
>>>> "Manuel" == Manuel Bouyer <bouyer@antioche.eu.org> writes:
>
>    Manuel> Did you try it ? I'm  not sure /bin/sh will work on NetBSD
>    Manuel> as proc 1.  Especially I'm not sure file descriptors 0,1,2
>    Manuel> would be properly open.
>
>I just tried it (just copying /bin/sh to /sbin/init since I don't have
>a -current  machine to  try the  new boot flags  with) and  the kernel
>panics with "init died". Clearly, you are correct: it does not work.
>

I won't have a chance to try this, but I suspect that if you made this
/sbin/init it would work:

	#!/bin/ksh

	exec /bin/ksh -i $* >/dev/console 2>&1 </dev/console



		--Steve Bellovin, http://www.research.att.com/~smb (me)
		http://www.wilyhacker.com ("Firewalls" book)