Browse Source

add spif tty & bpp devices

OPENBSD_2_5
jason 26 years ago
parent
commit
544a184656
1 changed files with 22 additions and 1 deletions
  1. +22
    -1
      src/etc/etc.sparc/MAKEDEV

+ 22
- 1
src/etc/etc.sparc/MAKEDEV View File

@ -1,5 +1,5 @@
#!/bin/sh - #!/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. # Copyright (c) 1990 The Regents of the University of California.
# All rights reserved. # All rights reserved.
@ -81,6 +81,7 @@
# tun* network tunnel driver # tun* network tunnel driver
# *random inkernal random data source # *random inkernal random data source
# magma* magma card (makes 16 tty and 2 bpp) # magma* magma card (makes 16 tty and 2 bpp)
# spif* spif card (makes 8 tty and 1 bpp)
# bpp* bpp # bpp* bpp
# xfs* XFS filesystem devices # xfs* XFS filesystem devices
# ipl IP filter log # ipl IP filter log
@ -603,6 +604,26 @@ pty*)
esac 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*) magma*)
case $unit in case $unit in
0) nam=m;; 0) nam=m;;


Loading…
Cancel
Save