Sync with walnut/conf.c (leaving alone devices that are present here, but not
in the configuration). wd mismatch pointed out by smi@sm.sony.co.jp in port-powerpc/16165.
This commit is contained in:
parent
c32a17670a
commit
bc565cd41f
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.17 2002/04/01 15:48:56 briggs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.18 2002/04/02 05:24:59 briggs Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
|
@ -145,19 +145,19 @@ isdns)
|
|||
std)
|
||||
rm -f console drum mem kmem null zero io klog
|
||||
mknod console c 0 0
|
||||
mknod drum c 4 0 ; chmod 640 drum ; chgrp kmem drum
|
||||
mknod drum c 6 0 ; chmod 640 drum ; chgrp kmem drum
|
||||
mknod kmem c 2 1 ; chmod 640 kmem ; chgrp kmem kmem
|
||||
mknod mem c 2 0 ; chmod 640 mem ; chgrp kmem mem
|
||||
mknod null c 2 2 ; chmod 666 null
|
||||
mknod zero c 2 12 ; chmod 666 zero
|
||||
mknod io c 2 14 ; chmod 640 io ; chgrp kmem io
|
||||
mknod klog c 7 0 ; chmod 600 klog
|
||||
mknod klog c 5 0 ; chmod 600 klog
|
||||
if $nofdesc; then
|
||||
rm -f tty stdin stdout stderr
|
||||
mknod tty c 1 0 ; chmod 666 tty
|
||||
mknod stdin c 22 0 ; chmod 666 stdin
|
||||
mknod stdout c 22 1 ; chmod 666 stdout
|
||||
mknod stderr c 22 2 ; chmod 666 stderr
|
||||
mknod stdin c 32 0 ; chmod 666 stdin
|
||||
mknod stdout c 32 1 ; chmod 666 stdout
|
||||
mknod stderr c 32 2 ; chmod 666 stderr
|
||||
fi
|
||||
;;
|
||||
|
||||
|
@ -232,7 +232,7 @@ fd)
|
|||
mkdir fd 2>/dev/null
|
||||
n=0
|
||||
while [ $n -lt 64 ]; do
|
||||
mknod fd/$n c 22 $n
|
||||
mknod fd/$n c 32 $n
|
||||
n=$(($n + 1))
|
||||
done
|
||||
chmod 755 fd
|
||||
|
@ -241,19 +241,19 @@ fd)
|
|||
;;
|
||||
|
||||
md*)
|
||||
unit=${i#md}; blk=17; chr=24
|
||||
unit=${i#md}; blk=9; chr=27
|
||||
rm -f md${unit}? rmd${unit}?
|
||||
mknod md${unit}a b $blk $(($unit * 8 + 0))
|
||||
mknod md${unit}d b $blk $(($unit * 8 + 3))
|
||||
# mknod rmd${unit}a c $chr $(($unit * 8 + 0))
|
||||
# mknod rmd${unit}d c $chr $(($unit * 8 + 3))
|
||||
mknod md${unit}a b $blk $(($unit * 16 + 0))
|
||||
mknod md${unit}d b $blk $(($unit * 16 + 3))
|
||||
# mknod rmd${unit}a c $chr $(($unit * 16 + 0))
|
||||
# mknod rmd${unit}d c $chr $(($unit * 16 + 3))
|
||||
chgrp operator md${unit}? #rmd${unit}?
|
||||
chmod 640 md${unit}? #rmd${unit}?
|
||||
;;
|
||||
|
||||
ss*)
|
||||
case $i in
|
||||
ss*) name=ss; unit=${i#ss}; chr=19;;
|
||||
ss*) name=ss; unit=${i#ss}; chr=17;;
|
||||
esac
|
||||
rm -f $name$unit n$name$unit en$name$unit
|
||||
mknod $name$unit c $chr $(($unit * 16 + 0))
|
||||
|
@ -265,29 +265,45 @@ ss*)
|
|||
|
||||
ccd*|sd*|vnd*|wd*|raid*)
|
||||
case $i in
|
||||
ccd*) name=ccd; unit=${i#ccd}; blk=16; chr=18;;
|
||||
raid*) name=raid; unit=${i#raid}; blk=18; chr=51;;
|
||||
ccd*) name=ccd; unit=${i#ccd}; blk=3; chr=26;;
|
||||
raid*) name=raid; unit=${i#raid}; blk=12; chr=38;;
|
||||
sd*) name=sd; unit=${i#sd}; blk=4; chr=13;;
|
||||
vnd*) name=vnd; unit=${i#vnd}; blk=14; chr=41;;
|
||||
wd*) name=wd; unit=${i#wd}; blk=0; chr=3;;
|
||||
vnd*) name=vnd; unit=${i#vnd}; blk=2; chr=25;;
|
||||
wd*) name=wd; unit=${i#wd}; blk=10; chr=30;;
|
||||
esac
|
||||
rm -f $name$unit? r$name$unit?
|
||||
mknod ${name}${unit}a b $blk $(($unit * 8 + 0))
|
||||
mknod ${name}${unit}b b $blk $(($unit * 8 + 1))
|
||||
mknod ${name}${unit}c b $blk $(($unit * 8 + 2))
|
||||
mknod ${name}${unit}d b $blk $(($unit * 8 + 3))
|
||||
mknod ${name}${unit}e b $blk $(($unit * 8 + 4))
|
||||
mknod ${name}${unit}f b $blk $(($unit * 8 + 5))
|
||||
mknod ${name}${unit}g b $blk $(($unit * 8 + 6))
|
||||
mknod ${name}${unit}h b $blk $(($unit * 8 + 7))
|
||||
mknod r${name}${unit}a c $chr $(($unit * 8 + 0))
|
||||
mknod r${name}${unit}b c $chr $(($unit * 8 + 1))
|
||||
mknod r${name}${unit}c c $chr $(($unit * 8 + 2))
|
||||
mknod r${name}${unit}d c $chr $(($unit * 8 + 3))
|
||||
mknod r${name}${unit}e c $chr $(($unit * 8 + 4))
|
||||
mknod r${name}${unit}f c $chr $(($unit * 8 + 5))
|
||||
mknod r${name}${unit}g c $chr $(($unit * 8 + 6))
|
||||
mknod r${name}${unit}h c $chr $(($unit * 8 + 7))
|
||||
mknod ${name}${unit}a b $blk $(($unit * 16 + 0))
|
||||
mknod ${name}${unit}b b $blk $(($unit * 16 + 1))
|
||||
mknod ${name}${unit}c b $blk $(($unit * 16 + 2))
|
||||
mknod ${name}${unit}d b $blk $(($unit * 16 + 3))
|
||||
mknod ${name}${unit}e b $blk $(($unit * 16 + 4))
|
||||
mknod ${name}${unit}f b $blk $(($unit * 16 + 5))
|
||||
mknod ${name}${unit}g b $blk $(($unit * 16 + 6))
|
||||
mknod ${name}${unit}h b $blk $(($unit * 16 + 7))
|
||||
mknod ${name}${unit}i b $blk $(($unit * 16 + 8))
|
||||
mknod ${name}${unit}j b $blk $(($unit * 16 + 9))
|
||||
mknod ${name}${unit}k b $blk $(($unit * 16 + 10))
|
||||
mknod ${name}${unit}l b $blk $(($unit * 16 + 11))
|
||||
mknod ${name}${unit}m b $blk $(($unit * 16 + 12))
|
||||
mknod ${name}${unit}n b $blk $(($unit * 16 + 13))
|
||||
mknod ${name}${unit}o b $blk $(($unit * 16 + 14))
|
||||
mknod ${name}${unit}p b $blk $(($unit * 16 + 15))
|
||||
mknod r${name}${unit}a c $chr $(($unit * 16 + 0))
|
||||
mknod r${name}${unit}b c $chr $(($unit * 16 + 1))
|
||||
mknod r${name}${unit}c c $chr $(($unit * 16 + 2))
|
||||
mknod r${name}${unit}d c $chr $(($unit * 16 + 3))
|
||||
mknod r${name}${unit}e c $chr $(($unit * 16 + 4))
|
||||
mknod r${name}${unit}f c $chr $(($unit * 16 + 5))
|
||||
mknod r${name}${unit}g c $chr $(($unit * 16 + 6))
|
||||
mknod r${name}${unit}h c $chr $(($unit * 16 + 7))
|
||||
mknod r${name}${unit}i c $chr $(($unit * 16 + 8))
|
||||
mknod r${name}${unit}j c $chr $(($unit * 16 + 9))
|
||||
mknod r${name}${unit}k c $chr $(($unit * 16 + 10))
|
||||
mknod r${name}${unit}l c $chr $(($unit * 16 + 11))
|
||||
mknod r${name}${unit}m c $chr $(($unit * 16 + 12))
|
||||
mknod r${name}${unit}n c $chr $(($unit * 16 + 13))
|
||||
mknod r${name}${unit}o c $chr $(($unit * 16 + 14))
|
||||
mknod r${name}${unit}p c $chr $(($unit * 16 + 15))
|
||||
chgrp operator $name$unit? r$name$unit?
|
||||
chmod 640 $name$unit? r$name$unit?
|
||||
;;
|
||||
|
@ -317,8 +333,8 @@ ttyCY*)
|
|||
com*|tty*) # (XXX -- com should die)
|
||||
unit=${i#???}
|
||||
rm -f com$unit tty0$unit dty0$unit
|
||||
mknod tty0$unit c 8 $(($unit + $dialin ))
|
||||
mknod dty0$unit c 8 $(($unit + $dialout))
|
||||
mknod tty0$unit c 45 $(($unit + $dialin ))
|
||||
mknod dty0$unit c 45 $(($unit + $dialout))
|
||||
chown uucp tty0$unit dty0$unit
|
||||
;;
|
||||
|
||||
|
@ -391,8 +407,8 @@ st*)
|
|||
|
||||
ch*|uk*)
|
||||
case $i in
|
||||
ch*) name=ch; unit=${i#ch}; chr=17;;
|
||||
uk*) name=uk; unit=${i#uk}; chr=20;;
|
||||
ch*) name=ch; unit=${i#ch}; chr=16;;
|
||||
uk*) name=uk; unit=${i#uk}; chr=18;;
|
||||
esac
|
||||
rm -f $name$unit
|
||||
mknod $name$unit c $chr $unit
|
||||
|
@ -405,10 +421,10 @@ cd*)
|
|||
cd*) name=cd; unit=${i#cd}; chr=15; blk=6;;
|
||||
esac
|
||||
rm -f $name$unit? r$name$unit?
|
||||
mknod ${name}${unit}a b $blk $(($unit * 8 + 0))
|
||||
mknod ${name}${unit}d b $blk $(($unit * 8 + 3))
|
||||
mknod r${name}${unit}a c $chr $(($unit * 8 + 0))
|
||||
mknod r${name}${unit}d c $chr $(($unit * 8 + 3))
|
||||
mknod ${name}${unit}a b $blk $(($unit * 16 + 0))
|
||||
mknod ${name}${unit}d b $blk $(($unit * 16 + 3))
|
||||
mknod r${name}${unit}a c $chr $(($unit * 16 + 0))
|
||||
mknod r${name}${unit}d c $chr $(($unit * 16 + 3))
|
||||
chgrp operator $name$unit? r$name$unit?
|
||||
chmod 640 $name$unit? r$name$unit?
|
||||
;;
|
||||
|
@ -424,8 +440,8 @@ lpt*|lpa*)
|
|||
|
||||
bpf*|tun*|pms*)
|
||||
case $i in
|
||||
bpf*) name=bpf; unit=${i#bpf}; chr=23;;
|
||||
tun*) name=tun; unit=${i#tun}; chr=40;;
|
||||
bpf*) name=bpf; unit=${i#bpf}; chr=10;;
|
||||
tun*) name=tun; unit=${i#tun}; chr=11;;
|
||||
pms*) name=pms; unit=${i#pms}; chr=37;;
|
||||
esac
|
||||
rm -f $name$unit
|
||||
|
@ -434,16 +450,16 @@ bpf*|tun*|pms*)
|
|||
|
||||
ipl)
|
||||
rm -f ipl ipnat ipstate ipauth
|
||||
mknod ipl c 44 0
|
||||
mknod ipnat c 44 1
|
||||
mknod ipstate c 44 2
|
||||
mknod ipauth c 44 3
|
||||
mknod ipl c 21 0
|
||||
mknod ipnat c 21 1
|
||||
mknod ipstate c 21 2
|
||||
mknod ipauth c 21 3
|
||||
chmod 600 ipl ipnat ipstate ipauth
|
||||
;;
|
||||
|
||||
lkm)
|
||||
rm -f lkm
|
||||
mknod lkm c 28 0
|
||||
mknod lkm c 31 0
|
||||
chgrp kmem lkm
|
||||
chmod 640 lkm
|
||||
;;
|
||||
|
@ -475,40 +491,40 @@ cfs*)
|
|||
scsibus*)
|
||||
unit=${i#scsibus}
|
||||
rm -f scsibus$unit
|
||||
mknod scsibus$unit c 61 $unit
|
||||
mknod scsibus$unit c 34 $unit
|
||||
chmod 644 scsibus$unit
|
||||
;;
|
||||
|
||||
isdn)
|
||||
rm -f isdn
|
||||
mknod isdn c 53 0
|
||||
mknod isdn c 54 0
|
||||
chmod 600 isdn
|
||||
;;
|
||||
|
||||
isdnctl)
|
||||
rm -f isdnctl
|
||||
mknod isdnctl c 54 0
|
||||
mknod isdnctl c 55 0
|
||||
chmod 600 isdnctl
|
||||
;;
|
||||
|
||||
isdnbchan*)
|
||||
unit=${i#isdnbchan}
|
||||
rm -f isdnbchan$unit
|
||||
mknod isdnbchan$unit c 55 $unit
|
||||
mknod isdnbchan$unit c 56 $unit
|
||||
chmod 600 isdnbchan$unit
|
||||
;;
|
||||
|
||||
isdntel*)
|
||||
unit=${i#isdntel}
|
||||
rm -f isdntel$unit
|
||||
mknod isdntel$unit c 57 $unit
|
||||
mknod isdntel$unit c 58 $unit
|
||||
chmod 600 isdntel$unit
|
||||
;;
|
||||
|
||||
isdntrc*)
|
||||
unit=${i#isdntrc}
|
||||
rm -f isdntrc$unit
|
||||
mknod isdntrc$unit c 56 $unit
|
||||
mknod isdntrc$unit c 57 $unit
|
||||
chmod 600 isdntrc$unit
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in New Issue