Subject: Re: /etc/rc. use bsd.rc.mk instead.
To: None <tech-userlevel@netbsd.org>
From: Greg A. Woods <woods@most.weird.com>
List: tech-userlevel
Date: 12/13/1999 15:09:23
[ On Monday, December 6, 1999 at 17:45:43 (-0500), Matthew Orgass wrote: ]
> Subject: Re: /etc/rc. use bsd.rc.mk instead.
>
> > * SysV runlevels can be emulated (including both level change behaviors
> > (though obviously only one at a time :) )).
> 
>   But you will need a way to find the current level unless you are willing
> to specify up or down (i.e. you need a sysctl).

Yes, of course, BUT:  The "init" program itself knows the current
runlevel and could either pass it in the environment, or with a very
minor tweak to the inittab(5) format, on the command line.

Of course this isn't true in the SysV (or SunOS-5) implementations
because their "init" does not pass the current runlevel to the scripts,
but then again didn't someone say something about improving on the
existing practice?  :-)

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>