|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: MAKEDEV,v 1.70 1999/04/28 23:20:51 alex Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: MAKEDEV,v 1.71 1999/07/30 18:49:36 deraadt Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $ |
|
|
# |
|
|
# |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
@ -41,7 +41,6 @@ |
|
|
# sd* SCSI disks |
|
|
# sd* SCSI disks |
|
|
# cd* SCSI CD-ROM |
|
|
# cd* SCSI CD-ROM |
|
|
# mcd* Mitsumi CD-ROM |
|
|
# mcd* Mitsumi CD-ROM |
|
|
# acd* ATAPI CD-ROM |
|
|
|
|
|
# vnd* "file" pseudo-disks |
|
|
# vnd* "file" pseudo-disks |
|
|
# rd* "ramdisk" pseudo-disks |
|
|
# rd* "ramdisk" pseudo-disks |
|
|
# ccd* contatenated disk devices |
|
|
# ccd* contatenated disk devices |
|
@ -113,7 +112,7 @@ all) |
|
|
sh MAKEDEV std fd wt0 wd0 wd1 wd2 wd3 sd0 sd1 sd2 |
|
|
sh MAKEDEV std fd wt0 wd0 wd1 wd2 wd3 sd0 sd1 sd2 |
|
|
sh MAKEDEV tty00 tty01 tty02 tty03 pty0 pty1 st0 st1 ch0 cd0 cd1 |
|
|
sh MAKEDEV tty00 tty01 tty02 tty03 pty0 pty1 st0 st1 ch0 cd0 cd1 |
|
|
sh MAKEDEV ttyc0 ttyc1 ttyc2 ttyc3 ttyc4 ttyc5 ttyc6 ttyc7 |
|
|
sh MAKEDEV ttyc0 ttyc1 ttyc2 ttyc3 ttyc4 ttyc5 ttyc6 ttyc7 |
|
|
sh MAKEDEV mcd0 acd0 vnd0 vnd1 lpa0 lpa1 ccd0 ccd1 ccd2 ccd3 |
|
|
|
|
|
|
|
|
sh MAKEDEV mcd0 vnd0 vnd1 lpa0 lpa1 ccd0 ccd1 ccd2 ccd3 |
|
|
sh MAKEDEV raid0 raid1 raid2 raid3 lpt0 lpt1 lpt2 |
|
|
sh MAKEDEV raid0 raid1 raid2 raid3 lpt0 lpt1 lpt2 |
|
|
sh MAKEDEV ttyC0 ttyC1 ttyC2 ttyC3 ttyC4 ttyC5 |
|
|
sh MAKEDEV ttyC0 ttyC1 ttyC2 ttyC3 ttyC4 ttyC5 |
|
|
sh MAKEDEV ipl tun0 tun1 tun2 |
|
|
sh MAKEDEV ipl tun0 tun1 tun2 |
|
@ -130,13 +129,13 @@ all) |
|
|
|
|
|
|
|
|
floppy) |
|
|
floppy) |
|
|
sh MAKEDEV std wt0 fd0 wd0 wd1 sd0 sd1 tty00 tty01 |
|
|
sh MAKEDEV std wt0 fd0 wd0 wd1 sd0 sd1 tty00 tty01 |
|
|
sh MAKEDEV st0 cd0 acd0 ttyC0 random |
|
|
|
|
|
|
|
|
sh MAKEDEV st0 cd0 ttyC0 random |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
ramdisk) |
|
|
ramdisk) |
|
|
sh MAKEDEV std lkm tty00 tty01 tty02 tty03 ttyC0 random |
|
|
sh MAKEDEV std lkm tty00 tty01 tty02 tty03 ttyC0 random |
|
|
sh MAKEDEV wt0 fd0 rd0 wd0 wd1 wd2 wd3 bpf0 |
|
|
sh MAKEDEV wt0 fd0 rd0 wd0 wd1 wd2 wd3 bpf0 |
|
|
sh MAKEDEV sd0 sd1 sd2 sd3 st0 st1 cd0 cd1 acd0 mcd0 |
|
|
|
|
|
|
|
|
sh MAKEDEV sd0 sd1 sd2 sd3 st0 st1 cd0 cd1 mcd0 |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
std) |
|
|
std) |
|
@ -446,12 +445,11 @@ ch*) |
|
|
umask 77 |
|
|
umask 77 |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
cd*|mcd*|acd*) |
|
|
|
|
|
|
|
|
cd*|mcd*) |
|
|
umask 2 ; unit=`expr $i : '.*cd\(.*\)'` |
|
|
umask 2 ; unit=`expr $i : '.*cd\(.*\)'` |
|
|
case $i in |
|
|
case $i in |
|
|
cd*) name=cd; blk=6; chr=15;; |
|
|
cd*) name=cd; blk=6; chr=15;; |
|
|
mcd*) name=mcd; blk=7; chr=39;; |
|
|
mcd*) name=mcd; blk=7; chr=39;; |
|
|
acd*) name=acd; blk=18; chr=24;; |
|
|
|
|
|
esac |
|
|
esac |
|
|
rm -f $name$unit? r$name$unit? |
|
|
rm -f $name$unit? r$name$unit? |
|
|
mknod ${name}${unit}a b $blk `expr $unit '*' 16 + 0` |
|
|
mknod ${name}${unit}a b $blk `expr $unit '*' 16 + 0` |
|
|