#sccs	"@(#)devdir:MKNODS	1.4"
:
:  Make special files in /dev
:
:  This is a shell script instead of a make file since it is not known
:  how much of the file system will be built when this needs to be run
:  It is assumed that a shell exists as well as /etc/mknod, ln, chown,
:  chgrp, cat, echo, and rm.
:
: cd /dev
PID=$$

cat > /tmp/$PID.sh << '!FUNKY!Stuff!'
echo Creating $1...
/etc/mknod $1 $2 $3 $4
chown $5 $1
chgrp $6 $1
chmod $7 $1

!FUNKY!Stuff!

chmod 755 /tmp/$PID.sh

:
: 		DEVICE NAME	TYPE	MAJOR	MINOR	OWNER	GROUP	MODE
:   		-------------------------------------------------------------
:
/tmp/$PID.sh 	console 	c 	1 	0 	root 	sys 	666
/tmp/$PID.sh 	error 		c 	5 	0 	root 	sys 	666
/tmp/$PID.sh 	window 		c 	7 	0 	root 	sys 	666
/tmp/$PID.sh 	fp000 		b 	0 	0 	root 	sys 	400
/tmp/$PID.sh 	fp001 		b 	0 	1 	root 	sys 	400
/tmp/$PID.sh 	fp002 		b 	0 	2 	root 	sys 	400
/tmp/$PID.sh 	fp003 		b 	0 	3 	root 	sys 	400
/tmp/$PID.sh 	fp004 		b 	0 	4 	root 	sys 	400
/tmp/$PID.sh 	fp005 		b 	0 	5 	root 	sys 	400
/tmp/$PID.sh 	fp006 		b 	0 	6 	root 	sys 	400
/tmp/$PID.sh 	fp007 		b 	0 	7 	root 	sys 	400
/tmp/$PID.sh 	fp008 		b 	0 	8 	root 	sys 	400
/tmp/$PID.sh 	fp009 		b 	0 	9 	root 	sys 	400
/tmp/$PID.sh 	fp00a 		b 	0 	10 	root 	sys 	400
/tmp/$PID.sh 	fp00b 		b 	0 	11 	root 	sys 	400
/tmp/$PID.sh 	fp00c 		b 	0 	12 	root 	sys 	400
/tmp/$PID.sh 	fp00d 		b 	0 	13 	root 	sys 	400
/tmp/$PID.sh 	fp00e 		b 	0 	14 	root 	sys 	400
/tmp/$PID.sh 	fp00f 		b 	0 	15 	root 	sys 	400
/tmp/$PID.sh 	fp010 		b 	0 	16 	root 	sys 	400
/tmp/$PID.sh 	fp011 		b 	0 	17 	root 	sys 	400
/tmp/$PID.sh 	fp012 		b 	0 	18 	root 	sys 	400
/tmp/$PID.sh 	fp013 		b 	0 	19 	root 	sys 	400
/tmp/$PID.sh 	fp014 		b 	0 	20 	root 	sys 	400
/tmp/$PID.sh 	fp015 		b 	0 	21 	root 	sys 	400
/tmp/$PID.sh 	fp016 		b 	0 	22 	root 	sys 	400
/tmp/$PID.sh 	fp017 		b 	0 	23 	root 	sys 	400
/tmp/$PID.sh 	fp018 		b 	0 	24 	root 	sys 	400
/tmp/$PID.sh 	fp019 		b 	0 	25 	root 	sys 	400
/tmp/$PID.sh 	fp01a 		b 	0 	26 	root 	sys 	400
/tmp/$PID.sh 	fp01b 		b 	0 	27 	root 	sys 	400
/tmp/$PID.sh 	fp01c 		b 	0 	28 	root 	sys 	400
/tmp/$PID.sh 	fp01d 		b 	0 	29 	root 	sys 	400
/tmp/$PID.sh 	fp01e 		b 	0 	30 	root 	sys 	400
/tmp/$PID.sh 	fp01f 		b 	0 	31 	root 	sys 	400
/tmp/$PID.sh 	fp020 		b 	0 	32 	root 	sys 	666
/tmp/$PID.sh 	fp021 		b 	0 	33 	root 	sys 	666
/tmp/$PID.sh 	kmem 		c 	3 	1 	sys 	sys 	440
/tmp/$PID.sh 	lp 		c 	6 	0 	root 	sys 	222
/tmp/$PID.sh 	mem 		c 	3 	0 	sys 	sys 	440
/tmp/$PID.sh 	null 		c 	3 	2 	root 	sys 	666
/tmp/$PID.sh 	ph0 		c 	8 	0 	root 	sys 	666
/tmp/$PID.sh 	ph1 		c 	8 	1 	root 	sys 	666
/tmp/$PID.sh 	rawlp 		c 	6 	32 	root 	sys 	222
/tmp/$PID.sh 	rfp000 		c 	4 	0 	root 	sys 	400
/tmp/$PID.sh 	rfp001 		c 	4 	1 	root 	sys 	400
/tmp/$PID.sh 	rfp002 		c 	4 	2 	root 	sys 	400
/tmp/$PID.sh 	rfp003 		c 	4 	3 	root 	sys 	400
/tmp/$PID.sh 	rfp004 		c 	4 	4 	root 	sys 	400
/tmp/$PID.sh 	rfp005 		c 	4 	5 	root 	sys 	400
/tmp/$PID.sh 	rfp006 		c 	4 	6 	root 	sys 	400
/tmp/$PID.sh 	rfp007 		c 	4 	7 	root 	sys 	400
/tmp/$PID.sh 	rfp008 		c 	4 	8 	root 	sys 	400
/tmp/$PID.sh 	rfp009 		c 	4 	9 	root 	sys 	400
/tmp/$PID.sh 	rfp00a 		c 	4 	10 	root 	sys 	400
/tmp/$PID.sh 	rfp00b 		c 	4 	11 	root 	sys 	400
/tmp/$PID.sh 	rfp00c 		c 	4 	12 	root 	sys 	400
/tmp/$PID.sh 	rfp00d 		c 	4 	13 	root 	sys 	400
/tmp/$PID.sh 	rfp00e 		c 	4 	14 	root 	sys 	400
/tmp/$PID.sh 	rfp00f 		c 	4 	15 	root 	sys 	400
/tmp/$PID.sh 	rfp010 		c 	4 	16 	root 	sys 	400
/tmp/$PID.sh 	rfp011 		c 	4 	17 	root 	sys 	400
/tmp/$PID.sh 	rfp012 		c 	4 	18 	root 	sys 	400
/tmp/$PID.sh 	rfp013 		c 	4 	19 	root 	sys 	400
/tmp/$PID.sh 	rfp014 		c 	4 	20 	root 	sys 	400
/tmp/$PID.sh 	rfp015 		c 	4 	21 	root 	sys 	400
/tmp/$PID.sh 	rfp016 		c 	4 	22 	root 	sys 	400
/tmp/$PID.sh 	rfp017 		c 	4 	23 	root 	sys 	400
/tmp/$PID.sh 	rfp018 		c 	4 	24 	root 	sys 	400
/tmp/$PID.sh 	rfp019 		c 	4 	25 	root 	sys 	400
/tmp/$PID.sh 	rfp01a 		c 	4 	26 	root 	sys 	400
/tmp/$PID.sh 	rfp01b 		c 	4 	27 	root 	sys 	400
/tmp/$PID.sh 	rfp01c 		c 	4 	28 	root 	sys 	400
/tmp/$PID.sh 	rfp01d 		c 	4 	29 	root 	sys 	400
/tmp/$PID.sh 	rfp01e 		c 	4 	30 	root 	sys 	400
/tmp/$PID.sh 	rfp01f 		c 	4 	31 	root 	sys 	400
/tmp/$PID.sh 	rfp020 		c 	4 	32 	root 	sys 	666
/tmp/$PID.sh 	rfp021 		c 	4 	33 	root 	sys 	666
/tmp/$PID.sh 	swap 		b 	0 	1 	sys 	sys 	644
/tmp/$PID.sh 	tty 		c 	2 	0 	root 	sys 	666
/tmp/$PID.sh 	tty000 		c 	0 	0 	root 	sys 	666
/tmp/$PID.sh 	w1 		c 	7 	1 	root 	sys 	666
/tmp/$PID.sh 	w10 		c 	7 	10 	root 	sys 	666
/tmp/$PID.sh 	w11 		c 	7 	11 	root 	sys 	666
/tmp/$PID.sh 	w12 		c 	7 	12 	root 	sys 	666
/tmp/$PID.sh 	w2 		c 	7 	2 	root 	sys 	666
/tmp/$PID.sh 	w3 		c 	7 	3 	root 	sys 	666
/tmp/$PID.sh 	w4 		c 	7 	4 	root 	sys 	666
/tmp/$PID.sh 	w5 		c 	7 	5 	root 	sys 	666
/tmp/$PID.sh 	w6 		c 	7 	6 	root 	sys 	666
/tmp/$PID.sh 	w7 		c 	7 	7 	root 	sys 	666
/tmp/$PID.sh 	w8 		c 	7 	8 	root 	sys 	666
/tmp/$PID.sh 	w9 		c 	7 	9 	root 	sys 	666

echo Creating syscon...
ln window syscon
echo Creating systty...
ln window systty

rm /tmp/$PID.sh
