Understand how to create device nodes for mlx and ld.
As part of 'all', create mlx0 and ld0-3. Pointed out by Daniel Eggert in PR 18487.
This commit is contained in:
parent
6e51b83bf3
commit
f23e0c65e4
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.68 2002/10/21 04:14:55 lukem Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.69 2003/01/05 19:24:05 briggs Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
|
@ -139,6 +139,7 @@ all)
|
|||
makedev std wscons fd sd0 sd1 sd2 st0 st1 cd0 cd1 wd0 wd1 md0
|
||||
makedev ss0 ch0 uk0 uk1 vnd0 vnd1 ccd0 ccd1 ccd2 ccd3
|
||||
makedev cgd0 cgd1 cgd2 cgd3
|
||||
makedev mlx0 ld0 ld1 ld2 ld3
|
||||
makedev random tty00 tty01 tty10 pty0 adb grf0
|
||||
makedev bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
|
||||
makedev tun0 tun1 ipl usbs ttyCZ0 ttyCY0 audio openfirm
|
||||
|
@ -335,7 +336,7 @@ ss*)
|
|||
chmod 640 $name$unit n$name$unit en$name$unit
|
||||
;;
|
||||
|
||||
ccd*|cgd*|fd*|raid*|sd*|vnd*|wd*)
|
||||
ccd*|cgd*|fd*|raid*|sd*|vnd*|wd*|ld*)
|
||||
case $i in
|
||||
ccd*) name=ccd; unit=${i#ccd}; blk=3; chr=26;;
|
||||
cgd*) name=cgd; unit=${i#cgd}; blk=14; chr=66;;
|
||||
|
@ -344,6 +345,7 @@ ccd*|cgd*|fd*|raid*|sd*|vnd*|wd*)
|
|||
raid*) name=raid; unit=${i#raid}; blk=12; chr=38;;
|
||||
vnd*) name=vnd; unit=${i#vnd}; blk=2; chr=25;;
|
||||
wd*) name=wd; unit=${i#wd}; blk=10; chr=30;;
|
||||
ld*) name=ld; unit=${i#ld}; blk=13; chr=59;;
|
||||
esac
|
||||
rm -f $name$unit? r$name$unit?
|
||||
mknod ${name}${unit}a b $blk $(($unit * 16 + 0))
|
||||
|
@ -611,6 +613,13 @@ scsibus*)
|
|||
chmod 644 scsibus$unit
|
||||
;;
|
||||
|
||||
mlx*)
|
||||
unit=${i#mlx}
|
||||
rm -f mlx$unit
|
||||
mknod mlx$unit c 68 $unit
|
||||
chmod 600 mlx$unit
|
||||
;;
|
||||
|
||||
usbs)
|
||||
makedev usb usb0 usb1 usb2 usb3 usb4 usb5 usb6 usb7
|
||||
makedev uhid0 uhid1 uhid2 uhid3
|
||||
|
|
Loading…
Reference in New Issue