Browse Source

Add cyclades devices.

OPENBSD_2_2
dgregor 27 years ago
parent
commit
927d31d3d7
1 changed files with 20 additions and 7 deletions
  1. +20
    -7
      src/etc/etc.i386/MAKEDEV

+ 20
- 7
src/etc/etc.i386/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.46 1997/06/02 22:54:02 kstailey Exp $
# $OpenBSD: MAKEDEV,v 1.47 1997/08/04 23:58:15 dgregor Exp $
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $ # $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
@ -58,6 +58,7 @@
# #
# Terminal ports: # Terminal ports:
# tty* PC COM ports # tty* PC COM ports
# ttyc* Cyclades serial ports
# #
# Pseudo terminals: # Pseudo terminals:
# pty* set of 16 master and slave pseudo terminals # pty* set of 16 master and slave pseudo terminals
@ -106,6 +107,7 @@ case $i in
all) all)
sh MAKEDEV std fd wt0 wd0 wd1 wd2 wd3 sd0 sd1 sd2 sh MAKEDEV std fd wt0 wd0 wd1 wd2 wd3 sd0 sd1 sd2
sh MAKEDEV tty00 tty01 tty02 tty03 pty0 pty1 st0 st1 ch0 cd0 cd1 sh MAKEDEV tty00 tty01 tty02 tty03 pty0 pty1 st0 st1 ch0 cd0 cd1
sh MAKEDEV cyclades
sh MAKEDEV mcd0 acd0 vnd0 vnd1 lpa0 lpa1 ccd0 ccd1 ccd2 ccd3 sh MAKEDEV mcd0 acd0 vnd0 vnd1 lpa0 lpa1 ccd0 ccd1 ccd2 ccd3
sh MAKEDEV lpt0 lpt1 lpt2 ttyC0 ttyC1 ttyC2 bpf0 bpf1 bpf2 bpf3 sh MAKEDEV lpt0 lpt1 lpt2 ttyC0 ttyC1 ttyC2 bpf0 bpf1 bpf2 bpf3
sh MAKEDEV ipl tun0 tun1 tun2 sh MAKEDEV ipl tun0 tun1 tun2
@ -151,6 +153,14 @@ ttyC*)
chown root.wheel ttyC$unit chown root.wheel ttyC$unit
;; ;;
ttyc*)
unit=`expr $i : 'ttyc(.*\)'`
rm -f ttyc$unit cuac$unit
mknod ttyc$unit c $major $minor
mknod cuac$unit c $major `expr $minor + 128`
chown uucp.wheel ttyc$unit cuac$unit
;;
fd) fd)
rm -f fd/* rm -f fd/*
mkdir fd > /dev/null 2>&1 mkdir fd > /dev/null 2>&1
@ -344,12 +354,12 @@ vnd*)
umask 77 umask 77
;; ;;
tty*)
unit=`expr $i : '...\(.*\)'`
rm -f com$unit tty$unit cua$unit
mknod tty$unit c 8 $unit
mknod cua$unit c 8 `expr $unit + 128`
chown uucp.wheel tty$unit cua$unit
tty0*)
unit=`expr $i : 'tty0\(.*\)'`
rm -f com0$unit tty0$unit cua0$unit
mknod tty0$unit c 8 $unit
mknod cua0$unit c 8 `expr $unit + 128`
chown uucp.wheel tty0$unit cua0$unit
;; ;;
pty*) pty*)
@ -589,6 +599,9 @@ ss*)
ln -s ss$unit scan$unit ln -s ss$unit scan$unit
;; ;;
cyclades)
sh MAKEDEV ttyc0 ttyc1 ttyc2 ttyc3 ttyc4 ttyc5 ttyc6 ttyc7
pctr) pctr)
rm -f pctr; rm -f pctr;
mknod pctr c 46 0 mknod pctr c 46 0


Loading…
Cancel
Save