|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/sh - |
|
|
|
# |
|
|
|
# $OpenBSD: MAKEDEV,v 1.19 1996/08/28 08:55:23 deraadt Exp $ |
|
|
|
# $OpenBSD: MAKEDEV,v 1.20 1996/08/29 13:22:23 deraadt Exp $ |
|
|
|
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $ |
|
|
|
# |
|
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
@ -57,8 +57,7 @@ |
|
|
|
# mouse-* "mouse link" (XXX) |
|
|
|
# |
|
|
|
# Terminal ports: |
|
|
|
# com* standard PC COM ports (XXX) |
|
|
|
# tty* alias for PC COM ports, this is what the system really wants |
|
|
|
# tty* PC COM ports |
|
|
|
# |
|
|
|
# Pseudo terminals: |
|
|
|
# pty* set of 16 master and slave pseudo terminals |
|
|
@ -91,7 +90,7 @@ case $i in |
|
|
|
|
|
|
|
all) |
|
|
|
sh MAKEDEV std fd wt0 fd0 fd1 wd0 wd1 wd2 wd3 sd0 sd1 sd2 |
|
|
|
sh MAKEDEV tty0 tty1 tty2 tty3 pty0 pty1 st0 st1 ch0 cd0 cd1 |
|
|
|
sh MAKEDEV tty00 tty01 tty02 tty03 pty0 pty1 st0 st1 ch0 cd0 cd1 |
|
|
|
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 ipl tun0 tun1 tun2 |
|
|
@ -102,7 +101,7 @@ all) |
|
|
|
;; |
|
|
|
|
|
|
|
floppy) |
|
|
|
sh MAKEDEV std wt0 fd0 fd1 wd0 wd1 sd0 sd1 sd2 tty0 tty1 |
|
|
|
sh MAKEDEV std wt0 fd0 fd1 wd0 wd1 sd0 sd1 sd2 tty00 tty01 |
|
|
|
sh MAKEDEV st0 st1 cd0 cd1 mcd0 acd0 ttyC0 |
|
|
|
;; |
|
|
|
|
|
|
@ -201,12 +200,12 @@ ccd*|fd*|sd*|vnd*|wd*) |
|
|
|
umask 77 |
|
|
|
;; |
|
|
|
|
|
|
|
com*|tty*) # (XXX -- com should die) |
|
|
|
tty*) |
|
|
|
unit=`expr $i : '...\(.*\)'` |
|
|
|
rm -f com$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 |
|
|
|
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 |
|
|
|
;; |
|
|
|
|
|
|
|
pty*) |
|
|
|