diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-05 21:52:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-05 21:52:11 +0000 |
commit | bf4750776a8540801578f2e0efc879efb04de3eb (patch) | |
tree | 5321e785479eeb4a9e144c1d17399d2ea1fdedc7 /etc/etc.sparc/MAKEDEV | |
parent | 74bbdbe7d2f57ee7f938a9954f64a16965fbcf2e (diff) |
split sysctl.conf into MD and MI parts
Diffstat (limited to 'etc/etc.sparc/MAKEDEV')
-rw-r--r-- | etc/etc.sparc/MAKEDEV | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV index db55a0fb2f1..7cab2067f29 100644 --- a/etc/etc.sparc/MAKEDEV +++ b/etc/etc.sparc/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.41 1998/04/30 06:12:51 jason Exp $ +# $OpenBSD: MAKEDEV,v 1.42 1998/05/05 21:52:06 deraadt Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -72,6 +72,7 @@ # lkm loadable kernel modules interface # tun* network tunnel driver # *random random data source +# magma* magma card (makes 16 mtty and 2 mbpp) PATH=/sbin:/bin/:/usr/bin:/usr/sbin:/usr/etc this=$0 @@ -537,6 +538,27 @@ pty*) esac ;; +magma*) + case $unit in + 0) offset=0 nam=m;; + 1) offset=16 nam=n;; + 2) offset=32 nam=o;; + 3) offset=48 nam=p;; + *) echo "bad unit for $i: $unit"; exit 127;; + esac + echo rm -f bppm${unit}? tty${nam}? + offset=`expr $unit \* 64` + n=0 + while [ $n -lt 16 ] + do + name=$unit`hex $n` + echo mknod tty$name c 100 `add $offset $n` + n=`add $n 1` + done + echo mknod bppm${unit} c 101 `add $offset 0` + echo mknod bppm${unit} c 101 `add $offset 1` + ;; + random|srandom|urandom|prandom|arandom) rm -f random urandom srandom prandom arandom mknod random c 119 0 |