diff options
author | imp <imp@cvs.openbsd.org> | 1997-05-04 02:03:03 +0000 |
---|---|---|
committer | imp <imp@cvs.openbsd.org> | 1997-05-04 02:03:03 +0000 |
commit | c9ec1c2d010ab7247504e396461cf89aea680a19 (patch) | |
tree | 1ad482d172faa33f20f646519812b35dc2b949da /etc | |
parent | 238ac301c93725d3efb9ed80f7a1e10725be9c0e (diff) |
Add wd (IDE) and acd (atapi) devices and make them by default
Diffstat (limited to 'etc')
-rw-r--r-- | etc/etc.arc/MAKEDEV | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/etc.arc/MAKEDEV b/etc/etc.arc/MAKEDEV index 4952e45aad4..23c6859a115 100644 --- a/etc/etc.arc/MAKEDEV +++ b/etc/etc.arc/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.12 1997/04/30 22:04:26 niklas Exp $ +# $OpenBSD: MAKEDEV,v 1.13 1997/05/04 02:03:02 imp Exp $ # @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 # @@ -14,7 +14,9 @@ # Disks: # fd* floppy disk drives # sd* SCSI disks +# wd* IDE disks # cd* SCSI CD rom +# acd* IDE CDROM. # vnd* "file" pseudo-disks # rd* "ramdisk" pseudo-disks # ccd* contatenated disk devices @@ -52,7 +54,7 @@ do case $i in all) - sh MAKEDEV std fd fd0 sd0 sd1 sd2 st0 cd0 ss0 tty00 tty01 pty0 pty1 + sh MAKEDEV std fd fd0 wd0 wd1 wd2 wd3 sd0 sd1 sd2 st0 acd0 cd0 ss0 tty00 tty01 pty0 pty1 sh MAKEDEV ttyC0 lpt0 pms0 random bpf0 local ;; @@ -152,12 +154,13 @@ bpf*|tun*) # chmod 640 lkm # ;; -fd*|sd*|vnd*) +fd*|sd*|vnd*|wd*) umask 2 ; unit=`expr $i : '..\(.*\)'` case $i in sd*) name=sd; blk=0; chr=9;; vnd*) name=vnd; blk=2; chr=11;; fd*) name=fd; blk=7; chr=13;; + wd*) name=wd; blk=4; chr=18;; esac rm -f $name$unit r$name$unit case $unit in @@ -204,10 +207,11 @@ fd*|sd*|vnd*) umask 77 ;; -cd*) +cd*|acd*) umask 2 ; unit=`expr $i : '.*cd\(.*\)'` case $i in cd*) name=cd; blk=3; chr=8;; + acd*) name=acd; blk=6; char=19;; esac rm -f $name$unit? r$name$unit? mknod ${name}${unit}a b $blk `expr $unit '*' 16 + 0` |