diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-11 21:47:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-11 21:47:47 +0000 |
commit | 2ca46a5df7fc8669beb392e18b97ce5dee7ba1e8 (patch) | |
tree | eb1b3c6551d1b798c5fbcc0a19ea08d09ec4ea54 | |
parent | 9a8cdb30c620a4860cc8c03f2ea83d68489dffc7 (diff) |
support ttyw*
-rw-r--r-- | etc/etc.mvme68k/MAKEDEV | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/etc/etc.mvme68k/MAKEDEV b/etc/etc.mvme68k/MAKEDEV index be8c231576a..70158f7232e 100644 --- a/etc/etc.mvme68k/MAKEDEV +++ b/etc/etc.mvme68k/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.12 1996/11/11 20:34:59 kstailey Exp $ +# $OpenBSD: MAKEDEV,v 1.13 1996/12/11 21:47:46 deraadt Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -33,7 +33,7 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $Id: MAKEDEV,v 1.12 1996/11/11 20:34:59 kstailey Exp $ +# $Id: MAKEDEV,v 1.13 1996/12/11 21:47:46 deraadt Exp $ # # Device "make" file. Valid arguments: # all makes all known devices, including local devices, @@ -55,6 +55,7 @@ # Terminal ports: # ttya,b,c,d standard serial port. # tty0? cl-cd serial ports +# ttyw? willowglen vme cl-cd serial ports # # Pseudo terminals: # pty* set of 16 master and slave pseudo terminals @@ -87,6 +88,7 @@ case $i in all) sh MAKEDEV std fd st0 ttya ttyb ttyc ttyd sh MAKEDEV tty00 tty01 tty02 tty03 + sh MAKEDEV ttyw0 sh MAKEDEV sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9 sh MAKEDEV vnd0 vnd1 vnd2 vnd3 vnd4 pty0 sh MAKEDEV vnd5 vnd6 cd0 bpf0 bpf1 bpf2 bpf3 ipl @@ -236,7 +238,7 @@ cd*) umask 77 ;; -tty0*|ttya|ttyb|ttyc|ttyd) +ttyw*|tty0*|ttya|ttyb|ttyc|ttyd) type=`expr $i : 'tty\(.\)'` case $type in 0) @@ -253,6 +255,20 @@ tty0*|ttya|ttyb|ttyc|ttyd) ;; esac ;; + w) + unit=`expr $i : 'tty.\(.\)'` + case $unit in + 0|1|2|3) + rm -f ttyw${unit} cuaw${unit} + mknod ttyw${unit} c 30 ${unit} + mknod cuaw${unit} c 30 `expr 128 + ${unit}` + chown uucp.wheel ttyw${unit} cuaw${unit} + ;; + *) + echo bad unit for ttyw in: $i + ;; + esac + ;; a|b|c|d) unit=${type} num=`echo ${unit} | tr abcd 0123` |