:
PATH=/bin:/usr/bin:/etc
M=mknod
#	@(#)makedevs.sh	1.11 88/02/25 
# do NOT redirect output to /dev/null, it may not exist, and then
# mknod'ing it would fail
if test ! -d $1
then mkdir $1
fi
if test ! -d $1/sys
then mkdir $1/sys
fi
cd $1
if test $? -ne 0
then exit $?	# exit if cd fails
fi
$M console c 5 0
$M syscon c 5 0
$M systty c 5 0
$M mem c 7 0
$M kmem c 7 1
$M log c 26 13
$M pty c 29 0 
chmod 666 ./pty 
cd sys
$M mems c 7 8
$M var c 7 9
$M proc c 7 10
$M procmax c 7 11
$M swplo c 7 12
$M swapdev c 7 13
$M sysinfo c 7 14
$M minfo c 7 15
$M syswait c 7 16
$M pagemap c 7 17
$M swaptab c 7 18
cd ..
$M null c 7 2
$M fd0 b 1 0
$M fd096 b 1 1
$M fd096ds9 b 1 2
$M fd048 b 1 3
$M fd048ds8 b 1 4
$M fd048ss9 b 1 5
$M fd048ss8 b 1 6
$M rfd0 c 1 0
$M rfd096 c 1 1
$M rfd096ds9 c 1 2
$M rfd048 c 1 3
$M rfd048ds8 c 1 4
$M rfd048ss9 c 1 5
$M rfd048ss8 c 1 6
$M hd0 b 0 0
$M hd0a b 0 1
$M hd0b b 0 2
$M hd0.fsck b 0 7
$M hd0.boot b 0 12
$M rhd0 c 0 0
$M rhd0a c 0 1
$M rhd0b c 0 2
$M rhd0.fsck c 0 7
$M rhd0.drinfo c 0 10
$M rhd0.badlist c 0 11
$M rhd0.boot c 0 12
$M rhd0.layout c 0 14
$M rhd0.secmap c 0 15
$M rct c 2 0
$M rsct c 2 128
if [ "$SYSID" = "$ACS2086" ] ; then
  $M plp c 3 0
fi
# create tty devices (but not when run from root floppy)
if test -x /etc/makettys; then /etc/makettys .; fi
$M tty c 6 0
$M clock c 8 0
$M staticram c 8 1
$M nsnet c 14 0
$M dl c 15 0
$M error c 16 0
# create links
ln fd0 fd0.auto
ln fd096 fd096ds15
ln fd096ds9 fd0.altos
ln fd096ds9 fd0.swap
ln fd048 fd048ds9
ln rfd0 rfd0.auto
ln rfd0 mt1
ln rfd0 tar
ln rfd096 rfd096ds15
ln rfd096ds9 rfd0.altos
ln rfd096ds9 rfd0.swap
ln rfd096ds9 ffmt
ln rfd048 rfd048ds9
ln hd0a swap
ln hd0b root
ln hd0.fsck hd0.roc0
ln rhd0a rswap
ln rhd0b rroot
ln rhd0.fsck rhd0.roc0
ln rhd0.drinfo hd0.drinfo
ln rhd0.badlist hd0.badlist
ln rhd0.layout hd0.layout
ln rhd0.secmap hd0.secmap
ln rct dump
chmod 644 * sys/*
chmod 666 null
chmod 666 wt* > /dev/null 2>&1
chmod 666 console tty* *lp *ct* null *fd* tar mt1 nsnet
chmod 755 ./sys .
find . -type d -exec chmod 755 {} \;
