Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 1998 21:40:40 -0700 (PDT)
From:      Thomas Dean <tomdean@ix.netcom.com>
To:        current@FreeBSD.ORG
Subject:   Re: time for some new man pages
Message-ID:  <199809300440.VAA08446@ix.netcom.com>
In-Reply-To: <199809300356.NAA09543@godzilla.zeta.org.au> (message from Bruce Evans on Wed, 30 Sep 1998 13:56:08 %2B1000)

next in thread | previous in thread | raw e-mail | index | archive | help
I have copied MAKEDEV to makedev.sh, which only echo's its commands.
I did this for instructional purposes.  The change from MAKEDEV is to
add functions to replace the external commands executed by the sh
script.  This has helped a few people understand it.

I think 'MAKEDEV st0' still works.  And, it appears that 'MAKEDEV all'
will still attempt to create ??st0 devices.  Likewise for sd[0-3].

I am running a -current SMP of Sat Sep 5 19:58:37 PDT 1998.  CVSUP'ed
about 5 hours earlier.

# ls -l /dev/MAKEDEV
-r-xr-xr-x  1 root  wheel  30774 May 20  1997 /dev/MAKEDEV*

Here is what I think 'MAKEDEV st0' will do:

# makedev.sh st0
umask 017
rm -f [hml]rst[0123456] [hml][en]rst[0123456] [hml]enrst[0123456]
rm -f rst0 [en]rst0 enrst0
rm -f rst0.[0123] nrst0.[0123] erst0.[0123] st0ctl.[0123]
mknod rst0.0 c 14 0
mknod nrst0.0 c 14 1
mknod erst0.0 c 14 2
mknod st0ctl.0 c 14 3
chgrp operator rst0.0 nrst0.0 erst0.0 st0ctl.0
chmod 600 st0ctl.0
mknod rst0.1 c 14 4
mknod nrst0.1 c 14 5
mknod erst0.1 c 14 6
mknod st0ctl.1 c 14 7
chgrp operator rst0.1 nrst0.1 erst0.1 st0ctl.1
chmod 600 st0ctl.1
mknod rst0.2 c 14 8
mknod nrst0.2 c 14 9
mknod erst0.2 c 14 10
mknod st0ctl.2 c 14 11
chgrp operator rst0.2 nrst0.2 erst0.2 st0ctl.2
chmod 600 st0ctl.2
mknod rst0.3 c 14 12
mknod nrst0.3 c 14 13
mknod erst0.3 c 14 14
mknod st0ctl.3 c 14 15
chgrp operator rst0.3 nrst0.3 erst0.3 st0ctl.3
chmod 600 st0ctl.3
rm -f rst0.ctl
mknod rst0.ctl c 14 536870912
chmod 600 rst0.ctl
ln rst0.0 rst0
ln nrst0.0 nrst0
ln erst0.0 erst0
umask 77

Does this appear to be functional?

tomdean

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809300440.VAA08446>