summaryrefslogtreecommitdiff
path: root/etc/etc.sparc/MAKEDEV
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>1998-10-16 16:50:17 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>1998-10-16 16:50:17 +0000
commit98cb38d5f2cd756345518ad6827a828d7bc467e7 (patch)
tree18148efe7e3b356e20d5119f7e2ccda33a8531c6 /etc/etc.sparc/MAKEDEV
parentf50a09c233e8e7b2e9000c583415a44b823cefca (diff)
fix magma device generation; three cards supported
ttym*, ttyn*, and ttyo* plus bppm{unit}{0,1}
Diffstat (limited to 'etc/etc.sparc/MAKEDEV')
-rw-r--r--etc/etc.sparc/MAKEDEV39
1 files changed, 10 insertions, 29 deletions
diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV
index 2f847f733d9..3dd842031a6 100644
--- a/etc/etc.sparc/MAKEDEV
+++ b/etc/etc.sparc/MAKEDEV
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $OpenBSD: MAKEDEV,v 1.50 1998/09/28 06:16:30 todd Exp $
+# $OpenBSD: MAKEDEV,v 1.51 1998/10/16 16:50:16 marc Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -593,43 +593,24 @@ 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;;
- 2) offset=32 nam=o;;
- 3) offset=48 nam=p;;
+ 0) nam=m;;
+ 1) nam=n;;
+ 2) nam=o;;
*) echo "bad unit for $i: $unit"; exit 127;;
esac
- echo rm -f bppm${unit}? tty${nam}?
+ 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`
+ name=$nam`hex $n`
+ mknod tty$name c 100 `add $offset $n`
+ chown uucp.wheel tty$name
n=`add $n 1`
done
- echo mknod bppm${unit} c 101 `add $offset 0`
- echo mknod bppm${unit} c 101 `add $offset 1`
+ mknod bppm${unit}0 c 101 `add $offset 0`
+ mknod bppm${unit}1 c 101 `add $offset 1`
;;
random|srandom|urandom|prandom|arandom)