Browse Source

support cua devices

OPENBSD_2_0
deraadt 28 years ago
parent
commit
62063323f2
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      src/etc/etc.arc/MAKEDEV

+ 6
- 5
src/etc/etc.arc/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.4 1996/08/28 08:55:21 deraadt Exp $
# $OpenBSD: MAKEDEV,v 1.5 1996/08/29 17:43:18 deraadt Exp $
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 # @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
# #
@ -52,7 +52,7 @@ do
case $i in case $i in
all) all)
sh MAKEDEV std fd fd0 sd0 sd1 sd2 st0 cd0 tty0 tty1 pty0 pty1
sh MAKEDEV std fd fd0 sd0 sd1 sd2 st0 cd0 tty00 tty01 pty0 pty1
sh MAKEDEV ttyC0 lpt0 pms0 random bpf0 local sh MAKEDEV ttyC0 lpt0 pms0 random bpf0 local
;; ;;
@ -214,9 +214,10 @@ lpt*)
tty*) tty*)
unit=`expr $i : '...\(.*\)'` unit=`expr $i : '...\(.*\)'`
rm -f tty0$unit
mknod tty0$unit c 17 $unit
chown uucp.wheel tty0$unit
rm -f tty$unit cua$unit
mknod tty$unit c 17 $unit
mknod cua$unit c 17 `expr $unit + 128`
chown uucp.wheel tty$unit cua$unit
;; ;;
pty*) pty*)


Loading…
Cancel
Save