diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 1998-03-02 05:12:21 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 1998-03-02 05:12:21 +0000 |
commit | d77c29f8c3d7f7850b624db8f649932164d9dfdc (patch) | |
tree | 82372849ac377ff4400d697e4eb6e50bd23db3c2 /etc/etc.sparc/MAKEDEV | |
parent | 7a75d3351e1bf492eb35964402461fb826514367 (diff) |
allow cmdline creation of ttya-d on sparc
Diffstat (limited to 'etc/etc.sparc/MAKEDEV')
-rw-r--r-- | etc/etc.sparc/MAKEDEV | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV index 118c0d0e9b3..7aefdb8a426 100644 --- a/etc/etc.sparc/MAKEDEV +++ b/etc/etc.sparc/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.36 1998/02/23 05:29:17 jason Exp $ +# $OpenBSD: MAKEDEV,v 1.37 1998/03/02 05:12:20 todd Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -197,10 +197,7 @@ std) mknod stdin c 24 0 ; chmod 666 stdin mknod stdout c 24 1 ; chmod 666 stdout mknod stderr c 24 2 ; chmod 666 stderr - mknod ttya c 12 0 - mknod ttyb c 12 1 - mknod ttyc c 12 4 - mknod ttyd c 12 5 + sh ${this} ttya ttyb ttyc ttyd mknod fb c 22 0 ; chmod 666 fb mknod mouse c 13 0 ; chmod 666 mouse mknod kbd c 29 0 ; chmod 666 kbd @@ -471,6 +468,20 @@ lkm) chmod 640 lkm ;; +tty[a-z]) + unit=`expr $i : 'tty\([a-z]\)'` + rm -f tty$unit + case $unit in + a) n=0 ;; + b) n=1 ;; + c) n=4 ;; + d) n=5 ;; + *) echo unknown tty device $i ;; + esac + mknod tty$unit c 12 $n + chown uucp.wheel tty$unit + ;; + pty*) case $unit in 0) offset=0 name=p;; |