|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: MAKEDEV,v 1.12 1997/02/05 02:37:45 kstailey Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: MAKEDEV,v 1.13 1997/02/22 21:09:13 kstailey Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.8 1996/03/03 16:54:17 thorpej Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.8 1996/03/03 16:54:17 thorpej Exp $ |
|
|
# |
|
|
# |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
@ -159,13 +159,14 @@ pty*) |
|
|
done |
|
|
done |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
cd*|sd*|xy*|vnd*|ccd*) |
|
|
|
|
|
|
|
|
cd*|sd*|xy*|vnd*|ccd*|rd*) |
|
|
case $arg in |
|
|
case $arg in |
|
|
cd*) name=cd; blk=18; chr=58;; |
|
|
cd*) name=cd; blk=18; chr=58;; |
|
|
sd*) name=sd; blk=7; chr=17;; |
|
|
sd*) name=sd; blk=7; chr=17;; |
|
|
xy*) name=xy; blk=3; chr=9 ;; |
|
|
xy*) name=xy; blk=3; chr=9 ;; |
|
|
vnd*) name=vnd; blk=5; chr=19;; |
|
|
vnd*) name=vnd; blk=5; chr=19;; |
|
|
ccd*) name=ccd; blk=9; chr=33;; |
|
|
ccd*) name=ccd; blk=9; chr=33;; |
|
|
|
|
|
rd*) name=rd; blk=13; chr=52;; |
|
|
esac |
|
|
esac |
|
|
case $unit in |
|
|
case $unit in |
|
|
0|1|2|3|4) offset=`expr $unit \* 8`;; |
|
|
0|1|2|3|4) offset=`expr $unit \* 8`;; |
|
|