diff options
author | Jason Wright <jason@cvs.openbsd.org> | 1999-02-01 00:35:54 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 1999-02-01 00:35:54 +0000 |
commit | 17bc0053bf518c09f45b10a1259c2a95a6f98c91 (patch) | |
tree | 5ccf1e5eefeac273b4182d6da7fdd1da7625aaf7 /etc/etc.sparc | |
parent | 06f06565f78df4a09a4374cfb8f131849a11f2b2 (diff) |
add spif tty & bpp devices
Diffstat (limited to 'etc/etc.sparc')
-rw-r--r-- | etc/etc.sparc/MAKEDEV | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV index b7734259fa8..4bc6bb2f8f1 100644 --- a/etc/etc.sparc/MAKEDEV +++ b/etc/etc.sparc/MAKEDEV @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: MAKEDEV,v 1.55 1999/01/04 03:47:35 jason Exp $ +# $OpenBSD: MAKEDEV,v 1.56 1999/02/01 00:35:53 jason Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -81,6 +81,7 @@ # tun* network tunnel driver # *random inkernal random data source # magma* magma card (makes 16 tty and 2 bpp) +# spif* spif card (makes 8 tty and 1 bpp) # bpp* bpp # xfs* XFS filesystem devices # ipl IP filter log @@ -603,6 +604,26 @@ pty*) esac ;; +spif*) + case $unit in + 0) nam=j;; + 1) nam=k;; + 2) nam=l;; + *) echo "bad unit for $i: $unit"; exit 127;; + esac + rm -f bpps${unit}? tty${nam}? + offset=`expr $unit \* 64` + n=0 + while [ $n -lt 8 ] + do + name=$nam`hex $n` + mknod tty$name c 102 `add $offset $n` + chown uucp.wheel tty$name + n=`add $n 1` + done + mknod bpps${unit}0 c 103 `add $offset 0` + ;; + magma*) case $unit in 0) nam=m;; |