|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: MAKEDEV,v 1.19 1997/07/06 19:42:39 downsj Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: MAKEDEV,v 1.20 1997/07/07 23:49:58 downsj Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.12 1995/11/05 23:50:22 thorpej Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.12 1995/11/05 23:50:22 thorpej Exp $ |
|
|
# |
|
|
# |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
@ -55,6 +55,7 @@ |
|
|
# Pseudo terminals: |
|
|
# Pseudo terminals: |
|
|
# pty* set of 16 master and slave pseudo terminals |
|
|
# pty* set of 16 master and slave pseudo terminals |
|
|
# Printers: |
|
|
# Printers: |
|
|
|
|
|
# ppi* HP-IB plotters |
|
|
# Call units: |
|
|
# Call units: |
|
|
# Special purpose devices: |
|
|
# Special purpose devices: |
|
|
# fd file descriptors |
|
|
# fd file descriptors |
|
@ -76,7 +77,7 @@ case $i in |
|
|
all) |
|
|
all) |
|
|
sh MAKEDEV std fd ct0 ct1 st0 st1 ccd0 ccd1 ccd2 hd0 hd1 hd2 |
|
|
sh MAKEDEV std fd ct0 ct1 st0 st1 ccd0 ccd1 ccd2 hd0 hd1 hd2 |
|
|
sh MAKEDEV sd0 sd1 sd2 rd0 rd1 pty0 vnd0 vnd1 vnd2 vnd3 |
|
|
sh MAKEDEV sd0 sd1 sd2 rd0 rd1 pty0 vnd0 vnd1 vnd2 vnd3 |
|
|
sh MAKEDEV hil grf0 apci0 ite0 dca0 dcm0 dcm1 dcm2 dcm3 |
|
|
|
|
|
|
|
|
sh MAKEDEV hil grf0 apci0 ppi0 ite0 dca0 dcm0 dcm1 dcm2 dcm3 |
|
|
sh MAKEDEV bpf0 bpf1 bpf2 bpf3 ipl tun0 tun1 tun2 tun3 lkm random |
|
|
sh MAKEDEV bpf0 bpf1 bpf2 bpf3 ipl tun0 tun1 tun2 tun3 lkm random |
|
|
sh MAKEDEV local |
|
|
sh MAKEDEV local |
|
|
;; |
|
|
;; |
|
@ -285,12 +286,11 @@ vnd*) |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
dca*) |
|
|
dca*) |
|
|
# XXX What about dca cards? |
|
|
|
|
|
unit=`expr $i : 'dca\(.*\)'` |
|
|
unit=`expr $i : 'dca\(.*\)'` |
|
|
case $unit in |
|
|
case $unit in |
|
|
0) |
|
|
|
|
|
rm -f tty0 |
|
|
|
|
|
mknod tty0 c 12 0 |
|
|
|
|
|
|
|
|
0|1|2|3) |
|
|
|
|
|
rm -f tty${unit} |
|
|
|
|
|
mknod tty${unit} c 12 ${unit} |
|
|
;; |
|
|
;; |
|
|
*) |
|
|
*) |
|
|
echo bad unit for dca in: $i |
|
|
echo bad unit for dca in: $i |
|
@ -327,6 +327,19 @@ apci*) |
|
|
esac |
|
|
esac |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
ppi*) |
|
|
|
|
|
unit=`expr $i : 'ppi\(.*\)'` |
|
|
|
|
|
case $unit in |
|
|
|
|
|
0|1|2|3) |
|
|
|
|
|
rm -f ppi${unit} |
|
|
|
|
|
mknod ppi${unit} c 11 ${unit} |
|
|
|
|
|
;; |
|
|
|
|
|
*) |
|
|
|
|
|
echo bad unit for ppi in: $i |
|
|
|
|
|
;; |
|
|
|
|
|
esac |
|
|
|
|
|
;; |
|
|
|
|
|
|
|
|
ite*) |
|
|
ite*) |
|
|
unit=`expr $i : 'ite\(.*\)'` |
|
|
unit=`expr $i : 'ite\(.*\)'` |
|
|
case $unit in |
|
|
case $unit in |
|
|