|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: MAKEDEV,v 1.21 2000/11/24 20:13:10 hugh Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: MAKEDEV,v 1.22 2000/11/24 20:29:10 hugh Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.30 2000/01/21 12:28:29 tsutsui Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.30 2000/01/21 12:28:29 tsutsui Exp $ |
|
|
# |
|
|
# |
|
|
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 |
|
|
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 |
|
@ -21,17 +21,17 @@ |
|
|
# hp* massbus rm?? |
|
|
# hp* massbus rm?? |
|
|
# hk* unibus rk06 and rk07 |
|
|
# hk* unibus rk06 and rk07 |
|
|
# up* other unibus devices (e.g. on Emulex sc-21v controller) |
|
|
# up* other unibus devices (e.g. on Emulex sc-21v controller) |
|
|
# ra* MSCP disks (ra??, rd??) |
|
|
|
|
|
|
|
|
# ra* MSCP disks (ra??, hd??) |
|
|
# rx* MSCP floppy disk (rx33/50/...) |
|
|
# rx* MSCP floppy disk (rx33/50/...) |
|
|
# rl* unibus rl02 |
|
|
# rl* unibus rl02 |
|
|
# rb* 730 idc w/ rb80 and/or rb02 |
|
|
# rb* 730 idc w/ rb80 and/or rb02 |
|
|
# ccd* "concatenated" pseudo-disks |
|
|
# ccd* "concatenated" pseudo-disks |
|
|
# raid* RAIDframe disk driver |
|
|
# raid* RAIDframe disk driver |
|
|
# vnd* "file" pseudo-disks |
|
|
# vnd* "file" pseudo-disks |
|
|
# rd* HDC9224 rd disks on VS2000 |
|
|
|
|
|
|
|
|
# rd* memory pseudo-disk devices |
|
|
# sd* SCSI disks |
|
|
# sd* SCSI disks |
|
|
# cd* SCSI CD-ROM |
|
|
# cd* SCSI CD-ROM |
|
|
# md* memory pseudo-disk devices |
|
|
|
|
|
|
|
|
# hd* HDC9224 hd disks on VS2000 |
|
|
# Terminal multiplexors: |
|
|
# Terminal multiplexors: |
|
|
# dz* unibus dz11 and dz32 |
|
|
# dz* unibus dz11 and dz32 |
|
|
# dh* unibus dh11 and emulations (e.g. Able dmax, Emulex cs-11) |
|
|
# dh* unibus dh11 and emulations (e.g. Able dmax, Emulex cs-11) |
|
@ -73,7 +73,7 @@ all) |
|
|
sh $0 std fd vnd0 ccd0 pty0 pty1 lkm random |
|
|
sh $0 std fd vnd0 ccd0 pty0 pty1 lkm random |
|
|
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 |
|
|
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 |
|
|
sh $0 mt0 mt1 ts0 ts1 st0 st1 uk0 ss0 cd0 vt0 |
|
|
sh $0 mt0 mt1 ts0 ts1 st0 st1 uk0 ss0 cd0 vt0 |
|
|
sh $0 ra0 ra1 ra2 ra3 hp0 hp1 hp2 hp3 sd0 sd1 sd2 sd3 rd0 rd1 rd2 |
|
|
|
|
|
|
|
|
sh $0 ra0 ra1 ra2 ra3 hp0 hp1 hp2 hp3 sd0 sd1 sd2 sd3 hd0 hd1 hd2 |
|
|
sh $0 dz0 dl0 dhu0 rx0 rx1 raid0 raid1 raid2 raid3 |
|
|
sh $0 dz0 dl0 dhu0 rx0 rx1 raid0 raid1 raid2 raid3 |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
@ -265,7 +265,7 @@ vnd*) |
|
|
umask 77 |
|
|
umask 77 |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
hp*|hk*|up*|ra*|rl*|rb*|ccd*|rd*|sd*|rx*|raid*) |
|
|
|
|
|
|
|
|
hp*|hk*|up*|ra*|rl*|rb*|ccd*|hd*|sd*|rx*|raid*) |
|
|
umask 2 |
|
|
umask 2 |
|
|
case $i in |
|
|
case $i in |
|
|
hp*) name=hp; unit=${i#hp}; blk=0; chr=4;; |
|
|
hp*) name=hp; unit=${i#hp}; blk=0; chr=4;; |
|
@ -277,7 +277,7 @@ hp*|hk*|up*|ra*|rl*|rb*|ccd*|rd*|sd*|rx*|raid*) |
|
|
rx*) name=rx; unit=${i#rx}; blk=12; chr=30;; |
|
|
rx*) name=rx; unit=${i#rx}; blk=12; chr=30;; |
|
|
rl*) name=rl; unit=${i#rl}; blk=14; chr=32;; |
|
|
rl*) name=rl; unit=${i#rl}; blk=14; chr=32;; |
|
|
ccd*) name=ccd; unit=${i#ccd}; blk=17; chr=54;; |
|
|
ccd*) name=ccd; unit=${i#ccd}; blk=17; chr=54;; |
|
|
rd*) name=rd; unit=${i#rd}; blk=19; chr=58;; |
|
|
|
|
|
|
|
|
hd*) name=hd; unit=${i#hd}; blk=19; chr=58;; |
|
|
sd*) name=sd; unit=${i#sd}; blk=20; chr=59;; |
|
|
sd*) name=sd; unit=${i#sd}; blk=20; chr=59;; |
|
|
esac |
|
|
esac |
|
|
case $unit in |
|
|
case $unit in |
|
@ -336,15 +336,15 @@ ch*|uk*) |
|
|
chmod 640 $name$unit |
|
|
chmod 640 $name$unit |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
md*) |
|
|
|
|
|
unit=${i#md}; blk=23; chr=62; |
|
|
|
|
|
rm -f md${unit}? rmd${unit}? |
|
|
|
|
|
mknod md${unit}a b $blk $(($unit * 16 + 0)) |
|
|
|
|
|
mknod md${unit}c b $blk $(($unit * 16 + 2)) |
|
|
|
|
|
# mknod rmd${unit}a c $chr $(($unit * 16 + 0)) |
|
|
|
|
|
# mknod rmd${unit}c c $chr $(($unit * 16 + 2)) |
|
|
|
|
|
chgrp operator md${unit}? #rmd${unit}? |
|
|
|
|
|
chmod 640 md${unit}? #rmd${unit}? |
|
|
|
|
|
|
|
|
rd*) |
|
|
|
|
|
unit=${i#rd}; blk=23; chr=62; |
|
|
|
|
|
rm -f rd${unit}? rrd${unit}? |
|
|
|
|
|
mknod rd${unit}a b $blk $(($unit * 16 + 0)) |
|
|
|
|
|
mknod rd${unit}c b $blk $(($unit * 16 + 2)) |
|
|
|
|
|
# mknod rrd${unit}a c $chr $(($unit * 16 + 0)) |
|
|
|
|
|
# mknod rrd${unit}c c $chr $(($unit * 16 + 2)) |
|
|
|
|
|
chgrp operator rd${unit}? #rrd${unit}? |
|
|
|
|
|
chmod 640 rd${unit}? #rrd${unit}? |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
uu*) |
|
|
uu*) |
|
|