From 17bc0053bf518c09f45b10a1259c2a95a6f98c91 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Mon, 1 Feb 1999 00:35:54 +0000 Subject: add spif tty & bpp devices --- etc/etc.sparc/MAKEDEV | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'etc/etc.sparc/MAKEDEV') 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;; -- cgit v1.2.3