Subject: Re: which init? (Was Re: HEADS UP: fully dynamic linked system now the default)
To: William Waites <>
From: Steven M. Bellovin <>
List: current-users
Date: 09/30/2002 17:39:52
In message <>, William Waites writes:
>>>> "Manuel" == Manuel Bouyer <> 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:


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

		--Steve Bellovin, (me) ("Firewalls" book)