Subject: Re: devices in /dev
To: Ian Zagorskih <ianzag@megasignal.com>
From: Ben Collver <collver@peak.org>
List: current-users
Date: 03/29/2005 20:22:34
On Wed, Mar 30, 2005 at 10:45:51AM +0700, Ian Zagorskih wrote:
> Of course you need to create [/dev special files] manually :)
> /sbin/init does not create any devices.
From NetBSD-2.0 src/sbin/init.c
/* Run the makedev script to create devices */
switch ((pid = fork())) {
case 0:
dup2(2, 1); /* Give the script stdout */
if (chdir("/dev") == 0)
(void)execl(INIT_BSHELL, "sh",
mfile[0].len ? "./MAKEDEV" : "/etc/MAKEDEV",
"init", NULL);
What is going on here?
Ben