diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-20 23:37:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-20 23:37:26 +0000 |
commit | acde91795b59865d645f6b4fd3d40f2c1123ef92 (patch) | |
tree | 0847a958df3c9366d21f68bf61225cd28298a9f4 /etc/etc.sparc/MAKEDEV | |
parent | b3631ac0b1220ffc2abea369d1bc5a847066144d (diff) |
magma; plunky@skate.demon.co.uk
Diffstat (limited to 'etc/etc.sparc/MAKEDEV')
-rw-r--r-- | etc/etc.sparc/MAKEDEV | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV index 7cab2067f29..735e0519d2a 100644 --- a/etc/etc.sparc/MAKEDEV +++ b/etc/etc.sparc/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.42 1998/05/05 21:52:06 deraadt Exp $ +# $OpenBSD: MAKEDEV,v 1.43 1998/05/20 23:37:25 deraadt Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -72,7 +72,7 @@ # lkm loadable kernel modules interface # tun* network tunnel driver # *random random data source -# magma* magma card (makes 16 mtty and 2 mbpp) +# magma* magma card (makes 16 tty and 2 bpp) PATH=/sbin:/bin/:/usr/bin:/usr/sbin:/usr/etc this=$0 @@ -539,6 +539,25 @@ pty*) ;; magma*) + if [ 0$unit -gt 3 ] + then + echo "bad unit for $i: $unit" + exit 127 + fi + echo rm -f {tty,bpp}${unit}? + offset=`expr $unit \* 64` + n=0 + while [ $n -lt 16 ] + do + name=$unit`hex $n` + mknod tty$name c 100 `add $offset $n` + n=`add $n 1` + done + mknod bpp${unit}0 c 101 `add $offset 0` + mknod bpp${unit}1 c 101 `add $offset 1` + ;; + +magma*) case $unit in 0) offset=0 nam=m;; 1) offset=16 nam=n;; |