Add support for many more (930 or 992) ptys than the current 256.
Changes taken from the i386 MAKEDEV. Note that the unusual use of 'dd' to index an array was chosen because 'dd' is on all ports' install media. This form of this change comes from Andrew Brown; the original idea to bump the number of ptys this way comes from Brian Marcotte at Panix.
This commit is contained in:
parent
71ae6595ec
commit
1977a7b24e
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.7 2002/01/21 16:19:17 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.8 2002/02/02 07:04:44 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -70,7 +70,8 @@
|
||||
# fcom DC21285 COM port
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* stock lp
|
||||
@ -127,7 +128,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd fd0 fd1 wd0 wd1 wd2 wd3 md0 md1 sd0 sd1 sd2 sd3
|
||||
sh $0 tty0 tty1 pty0 pty1 pty2 pty3 st0 st1 ch0 cd0 cd1 vnd0 vnd1
|
||||
sh $0 tty0 tty1 pty0 pty1 st0 st1 ch0 cd0 cd1 vnd0 vnd1
|
||||
sh $0 ccd0 ccd1 uk0 uk1 ss0
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 ttyv0
|
||||
@ -143,7 +144,7 @@ all)
|
||||
|
||||
ramdisk|floppy)
|
||||
sh $0 std fd0 fd1 wd0 wd1 wd2 wd3 md0 md1 sd0 sd1 sd2 sd3
|
||||
sh $0 tty0 tty1 pty0 ttyv0
|
||||
sh $0 tty0 tty1 opty ttyv0
|
||||
sh $0 st0 st1 cd0 cd1
|
||||
;;
|
||||
|
||||
@ -368,48 +369,53 @@ fcom*)
|
||||
chmod 600 $fcom
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v
|
||||
echo "$0: $i: pty unit conflicts with console ttyv* devices."
|
||||
continue;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 7 $jn
|
||||
mknod ptyp$j c 6 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 7 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh -
|
||||
# $NetBSD: MAKEDEV,v 1.85 2002/01/21 16:19:18 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.86 2002/02/02 07:04:45 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -75,7 +75,8 @@
|
||||
# 32 ports.
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* PC parallel port driver ("lpt") units
|
||||
@ -133,7 +134,7 @@ do
|
||||
case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd sd0 sd1 sd2 sd3 sd4 pty0 pty1 pty2 pty3
|
||||
sh $0 std wscons fd sd0 sd1 sd2 sd3 sd4 pty0 pty1
|
||||
sh $0 st0 st1 ch0 cd0 cd1 vnd0 vnd1 vnd2 vnd3
|
||||
sh $0 ccd0 ccd1 ccd2 ccd3 md0 md1 ss0 ss1 uk0 uk1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
@ -156,7 +157,7 @@ all)
|
||||
|
||||
minimal)
|
||||
sh $0 std
|
||||
sh $0 sd0 sd1 sd2 sd3 pty0 st0 st1 ch0 cd0 cd1 ccd0 ccd1 md0
|
||||
sh $0 sd0 sd1 sd2 sd3 opty st0 st1 ch0 cd0 cd1 ccd0 ccd1 md0
|
||||
sh $0 wd0 wd1 fd0 fd1
|
||||
sh $0 ttyB0 ttyB1 ttyC0 ttyC1 ttyE0 ttyE1 wsmouse0 wskbd0 ttyEcfg
|
||||
;;
|
||||
@ -436,46 +437,54 @@ ttyC*)
|
||||
chown uucp.wheel ttyC$unit dtyC$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 4 $jn
|
||||
mknod ptyp$j c 5 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 4 $unit
|
||||
mknod pty$name$j c 5 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.67 2002/01/21 16:19:19 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.68 2002/02/02 07:04:45 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -82,7 +82,8 @@
|
||||
# "mouse" ports, if configured.
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# par0 Amiga motherboard parallel port
|
||||
@ -133,7 +134,7 @@ all)
|
||||
sh $0 tty00 ttyA0 ttyA1
|
||||
sh $0 ttyB0 ttyB1 ttyB2 ttyB3 ttyB4 ttyB5 ttyB6 ttyB7
|
||||
sh $0 ttyC0 ttyC1 ttyC2 ttyC3 ttyC4 ttyC5 ttyC6 ttyC7
|
||||
sh $0 view00 view01 view02 view03 view04 view05 pty0 pty1 pty2 pty3
|
||||
sh $0 view00 view01 view02 view03 view04 view05 pty0 pty1
|
||||
sh $0 sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9 cd0 st0 wd0 wd1
|
||||
sh $0 ss0 ch0 uk0 uk1 ccd0 ccd1 ccd2 ccd3 md0 md1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
@ -146,7 +147,7 @@ all)
|
||||
;;
|
||||
|
||||
floppy)
|
||||
sh $0 std fd0 fd1 fd2 fd3 kbd pty0 tun0 tun1
|
||||
sh $0 std fd0 fd1 fd2 fd3 kbd opty tun0 tun1
|
||||
sh $0 ttye0 ttye1 ttye2 ttye3 ttye4 ttye5 ttye6 ttye7
|
||||
sh $0 grf0 grf1 grf2 grf3 grf4 grf5 grf6 grf7
|
||||
sh $0 tty00 ttyA0 ttyB0 ttyC0
|
||||
@ -492,46 +493,54 @@ wskbd*)
|
||||
chmod 600 $wskbd
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 4 $jn
|
||||
mknod ptyp$j c 5 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 4 $unit
|
||||
mknod pty$name$j c 5 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
bpf*|tun*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh -
|
||||
# $NetBSD: MAKEDEV,v 1.13 2002/01/21 16:19:19 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.14 2002/02/02 07:04:46 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -69,7 +69,8 @@
|
||||
# tty* NS16550 ("com") serial ports
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* PC parallel port driver ("lpt") units
|
||||
@ -109,7 +110,7 @@ do
|
||||
case $i in
|
||||
|
||||
all)
|
||||
sh $0 wscons std fd sd0 sd1 sd2 sd3 sd4 pty0 pty1 pty2 pty3
|
||||
sh $0 wscons std fd sd0 sd1 sd2 sd3 sd4 pty0 pty1
|
||||
sh $0 st0 st1 ch0 cd0 cd1 vnd0 vnd1 vnd2 vnd3
|
||||
sh $0 ccd0 ccd1 ccd2 ccd3 md0 md1 ss0 ss1 uk0 uk1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
@ -126,7 +127,7 @@ all)
|
||||
|
||||
minimal)
|
||||
sh $0 std
|
||||
sh $0 sd0 sd1 sd2 sd3 pty0 st0 st1 ch0 cd0 cd1
|
||||
sh $0 sd0 sd1 sd2 sd3 opty st0 st1 ch0 cd0 cd1
|
||||
sh $0 ccd0 ccd1 md0 wd0 wd1 fd0 fd1
|
||||
sh $0 tty00 tty01 ttyE0 ttyE1 wsmouse0 wskbd0 ttyEcfg
|
||||
sh $0 ttyC0
|
||||
@ -292,48 +293,55 @@ tty*)
|
||||
chown uucp.wheel $name$unit $dname$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod tty$name$j c 4 $unit
|
||||
mknod pty$name$j c 5 $unit
|
||||
mknod ttyp$j c 4 $jn
|
||||
mknod ptyp$j c 5 $jn
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 4 $unit
|
||||
mknod pty$name$j c 5 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
st*)
|
||||
case $i in
|
||||
st*) name=st; unit=${i#st}; chr=10; blk=5;;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh -
|
||||
# $NetBSD: MAKEDEV,v 1.13 2002/01/21 16:19:19 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.14 2002/02/02 07:04:46 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -67,7 +67,8 @@
|
||||
# tty* alias for PC COM ports, this is what the system really wants
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* stock lp
|
||||
@ -95,7 +96,7 @@ do
|
||||
case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd pty0 pty1 pty2 pty3
|
||||
sh $0 std wscons fd pty0 pty1
|
||||
sh $0 vnd0 vnd1 vnd2 vnd3
|
||||
sh $0 ccd0 ccd1 ccd2 ccd3 md0 md1
|
||||
sh $0 wd0 wd1 sd0 sd1
|
||||
@ -106,7 +107,7 @@ all)
|
||||
|
||||
minimal)
|
||||
sh $0 std
|
||||
sh $0 pty0 ccd0 ccd1 md0
|
||||
sh $0 opty ccd0 ccd1 md0
|
||||
sh $0 ttyE0 ttyE1 wsmouse0 wskbd0 ttyEcfg
|
||||
;;
|
||||
|
||||
@ -268,46 +269,54 @@ com*|tty*) # (XXX -- com should die)
|
||||
chown uucp.wheel tty$unit dty$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 4 $jn
|
||||
mknod ptyp$j c 5 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 4 $unit
|
||||
mknod pty$name$j c 5 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
bpf*|tun*|lpt*|arcpp*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.68 2002/01/21 16:19:19 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.69 2002/02/02 07:04:46 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -70,7 +70,8 @@
|
||||
# fcom DC21285 COM port
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* stock lp
|
||||
@ -129,7 +130,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd fd0 fd1 wd0 wd1 wd2 wd3 md0 md1 sd0 sd1 sd2 sd3
|
||||
sh $0 tty0 tty1 pty0 pty1 pty2 pty3 st0 st1 ch0 cd0 cd1 vnd0 vnd1
|
||||
sh $0 tty0 tty1 pty0 pty1 st0 st1 ch0 cd0 cd1 vnd0 vnd1
|
||||
sh $0 ccd0 ccd1 uk0 uk1 ss0
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 ttyv0
|
||||
@ -145,7 +146,7 @@ all)
|
||||
|
||||
ramdisk|floppy)
|
||||
sh $0 std fd0 fd1 wd0 wd1 wd2 wd3 md0 md1 sd0 sd1 sd2 sd3
|
||||
sh $0 tty0 tty1 pty0 ttyv0
|
||||
sh $0 tty0 tty1 opty ttyv0
|
||||
sh $0 st0 st1 cd0 cd1
|
||||
;;
|
||||
|
||||
@ -370,48 +371,52 @@ fcom*)
|
||||
chmod 600 $fcom
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v
|
||||
echo "$0: $i: pty unit conflicts with console ttyv* devices."
|
||||
continue;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 7 $jn
|
||||
mknod ptyp$j c 6 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 7 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.48 2002/01/19 18:59:18 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.49 2002/02/02 07:04:47 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -81,7 +81,8 @@
|
||||
# ttyB0 UART on first 68901 (formerly mdm01)
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# ISDN devices:
|
||||
# i4b communication between userland isdnd and kernel
|
||||
@ -130,7 +131,7 @@ all)
|
||||
sh $0 grf2 grf3 grf4 grf5 mouse0 mouse1 rtc random etvme leo0
|
||||
sh $0 kbd sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9 vnd0 vnd1 vnd2
|
||||
sh $0 vnd3 vnd4 view00 view01 view02 view03 view04 view05
|
||||
sh $0 pty0 pty1 pty2 pty3
|
||||
sh $0 pty0 pty1
|
||||
sh $0 vnd5 vnd6 cd0 fd0 fd1 fd2 fd3 bpf0 bpf1 bpf2 bpf3 ipl
|
||||
sh $0 ccd0 ccd1 ccd2 ccd3
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
@ -145,7 +146,7 @@ all)
|
||||
floppy)
|
||||
sh $0 std st0 ttye0 ttye1 ttye2 grf0 grf1 grf2 kbd tun0 tun1
|
||||
sh $0 sd0 sd1 sd2 sd3 sd4 wd0 wd1 cd0 fd0 md0 md1 rtc
|
||||
sh $0 ttyA0 ttyA1 ttyB0 pty0
|
||||
sh $0 ttyA0 ttyA1 ttyB0 opty
|
||||
;;
|
||||
|
||||
isdn)
|
||||
@ -418,46 +419,54 @@ view*)
|
||||
esac
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 4 $jn
|
||||
mknod ptyp$j c 5 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 4 $unit
|
||||
mknod pty$name$j c 5 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
lpt*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.23 2002/01/19 18:59:18 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.24 2002/02/02 07:04:47 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -71,7 +71,8 @@
|
||||
# ttyCY* Cyclom-Y multiport serial boards. Each "unit" makes 32 ports.
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* stock lp
|
||||
@ -117,7 +118,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std fd wt0 fd0 fd1 wd0 wd1 wd2 wd3 sd0 sd1 sd2 sd3 sd4
|
||||
sh $0 tty0 tty1 pty0 pty1 pty2 pty3
|
||||
sh $0 tty0 tty1 pty0 pty1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 st0 st1 ch0 cd0 cd1 vnd0 vnd1 lpa0 lpa1 lpa2
|
||||
sh $0 lpt0 lpt1 lpt2 ttyv0 tun0 tun1 ipl
|
||||
@ -134,7 +135,7 @@ all)
|
||||
|
||||
floppy)
|
||||
sh $0 std fd0 wd0 wd1 sd0 sd1 sd2 tty0 tty1
|
||||
sh $0 cd0 cd1 ttyE0 pty0
|
||||
sh $0 cd0 cd1 ttyE0 opty
|
||||
;;
|
||||
|
||||
ramdisk)
|
||||
@ -353,48 +354,53 @@ com*|tty*) # (XXX -- com should die)
|
||||
chown uucp.wheel tty0$unit dty0$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v
|
||||
echo "$0: $i: pty unit conflicts with console ttyv* devices."
|
||||
continue;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 5 $jn
|
||||
mknod ptyp$j c 6 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 5 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh -
|
||||
# $NetBSD: MAKEDEV,v 1.10 2002/01/19 18:59:19 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.11 2002/02/02 07:04:47 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -66,7 +66,8 @@
|
||||
# tty* NS16550 ("com") serial ports
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# ISDN devices:
|
||||
# i4b communication between userland isdnd and kernel
|
||||
@ -100,7 +101,7 @@ do
|
||||
case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wd0 wd1 sd0 sd1 sd2 sd3 pty0 pty1 pty2 pty3
|
||||
sh $0 std wd0 wd1 sd0 sd1 sd2 sd3 pty0 pty1
|
||||
sh $0 st0 st1 ch0 cd0 cd1 vnd0 vnd1 vnd2 vnd3
|
||||
sh $0 ccd0 ccd1 ccd2 ccd3 md0 md1 ss0 ss1 uk0 uk1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
@ -114,7 +115,7 @@ all)
|
||||
|
||||
minimal)
|
||||
sh $0 std
|
||||
sh $0 sd0 sd1 sd2 sd3 pty0 st0 st1 ch0 cd0 cd1 ccd0 ccd1 md0
|
||||
sh $0 sd0 sd1 sd2 sd3 opty st0 st1 ch0 cd0 cd1 ccd0 ccd1 md0
|
||||
sh $0 wd0 wd1 fd0 fd1
|
||||
sh $0 tty00
|
||||
;;
|
||||
@ -224,46 +225,53 @@ tty*)
|
||||
chown uucp.wheel $name$unit $dname$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 12 $jn
|
||||
mknod ptyp$j c 13 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 12 $unit
|
||||
mknod pty$name$j c 13 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.8 2002/01/21 16:19:20 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.9 2002/02/02 07:04:48 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -61,7 +61,8 @@
|
||||
# tty* alias for PC COM ports, this is what the system really wants
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Special purpose devices:
|
||||
# clockctl clock control for non root users
|
||||
@ -86,7 +87,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd gdrom0 maple
|
||||
sh $0 scif0 sci0 pty0 pty1
|
||||
sh $0 scif0 sci0 pty0
|
||||
sh $0 vnd0 vnd1
|
||||
sh $0 ttyE0 ttyEcfg wsmouse0 wskbd0 bpf0 bpf1 bpf2 bpf3 tun0 tun1 ipl
|
||||
sh $0 ccd0 ccd1 ccd2 ccd3 md0 random
|
||||
@ -96,7 +97,7 @@ all)
|
||||
|
||||
ramdisk)
|
||||
sh $0 std md0
|
||||
sh $0 scif0 sci0 pty0 pty1
|
||||
sh $0 scif0 sci0 pty0
|
||||
sh $0 ttyE0 ttyEcfg wsmouse0 wskbd0 bpf0 bpf1 bpf2 bpf3 tun0 tun1 ipl
|
||||
;;
|
||||
|
||||
@ -215,46 +216,53 @@ com*|tty*) # (XXX -- com should die)
|
||||
chown uucp.wheel tty0$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 5 $jn
|
||||
mknod ptyp$j c 6 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 5 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
gdrom*|cd*|mcd*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.7 2002/01/21 16:19:20 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.8 2002/02/02 07:04:48 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -67,7 +67,8 @@
|
||||
# fcom DC21285 COM port
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* stock lp
|
||||
@ -117,7 +118,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd fd0 fd1 wd0 wd1 wd2 wd3 md0 md1 sd0 sd1 sd2 sd3
|
||||
sh $0 tty0 tty1 pty0 pty1 pty2 pty3 st0 st1 ch0 cd0 cd1 vnd0 vnd1
|
||||
sh $0 tty0 tty1 pty0 pty1 st0 st1 ch0 cd0 cd1 vnd0 vnd1
|
||||
sh $0 ccd0 ccd1 uk0 uk1 ss0
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
|
||||
@ -131,7 +132,7 @@ all)
|
||||
|
||||
ramdisk|floppy)
|
||||
sh $0 std fd0 fd1 wd0 wd1 wd2 wd3 md0 md1 sd0 sd1 sd2 sd3
|
||||
sh $0 tty0 tty1 pty0
|
||||
sh $0 tty0 tty1 opty
|
||||
sh $0 st0 st1 cd0 cd1
|
||||
;;
|
||||
|
||||
@ -341,46 +342,52 @@ fcom*)
|
||||
chmod 600 $fcom
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 7 $jn
|
||||
mknod ptyp$j c 6 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 7 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.5 2002/01/13 14:16:41 manu Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.6 2002/02/02 07:04:48 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -51,7 +51,8 @@
|
||||
# tty* alias for PC COM ports, this is what the system really wants
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Call units:
|
||||
#
|
||||
@ -78,7 +79,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std fd fd0
|
||||
sh $0 tty0 tty1 pty0 pty1
|
||||
sh $0 tty0 tty1 pty0
|
||||
sh $0 vnd0 vnd1
|
||||
sh $0 bpf0 bpf1 bpf2 bpf3 tun0 tun1 ipl
|
||||
sh $0 ccd0 ccd1 ccd2 ccd3 md0 random
|
||||
@ -88,7 +89,7 @@ all)
|
||||
|
||||
ramdisk)
|
||||
sh $0 std md0
|
||||
sh $0 tty0 tty1 pty0 pty1
|
||||
sh $0 tty0 tty1 opty
|
||||
sh $0 bpf0 bpf1 bpf2 bpf3 tun0 tun1 ipl
|
||||
;;
|
||||
|
||||
@ -172,46 +173,54 @@ com*|tty*) # (XXX -- com should die)
|
||||
chown uucp.wheel tty0$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 5 $jn
|
||||
mknod ptyp$j c 6 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 5 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
cd*|mcd*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.39 2002/01/21 16:19:21 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.40 2002/02/02 07:04:49 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -61,7 +61,8 @@
|
||||
# dcm* HP200/300 4 port serial mux interface
|
||||
# apci* HP400 4 port serial mux interface
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
# wscons:
|
||||
# ttyE* wscons consoles
|
||||
# wskbd* wscons keyboard events
|
||||
@ -91,7 +92,7 @@ case $i in
|
||||
all)
|
||||
sh $0 std fd ct0 ct1 st0 st1 ccd0 ccd1 ccd2 rd0 rd1 rd2 md0 md1
|
||||
# sh $0 wscons # should be after 'std'
|
||||
sh $0 sd0 sd1 sd2 pty0 pty1 pty2 pty3 vnd0 vnd1 vnd2 vnd3
|
||||
sh $0 sd0 sd1 sd2 pty0 pty1 vnd0 vnd1 vnd2 vnd3
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 hil grf0 ite0 dca0 dcm0 dcm1 dcm2 dcm3 apci0
|
||||
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
|
||||
@ -441,46 +442,53 @@ ipl)
|
||||
chmod 600 ipl ipnat ipstate ipauth
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 4 $jn
|
||||
mknod ptyp$j c 5 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 4 $unit
|
||||
mknod pty$name$j c 5 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
random)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.25 2002/01/21 16:19:21 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.26 2002/02/02 07:04:49 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -65,7 +65,8 @@
|
||||
# ttyTX? TX39 internal serial ports
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* stock lp
|
||||
@ -115,7 +116,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd fd0 fd1 wd0 wd1 wd2 wd3 sd0 sd1 sd2 sd3 sd4
|
||||
sh $0 tty0 tty1 tty2 pty0 pty1 pty2 pty3
|
||||
sh $0 tty0 tty1 tty2 pty0 pty1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 st0 st1 ch0 cd0 cd1 vnd0 vnd1
|
||||
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
|
||||
@ -130,7 +131,7 @@ all)
|
||||
|
||||
floppy)
|
||||
sh $0 std fd0 fd1 wd0 wd1 sd0 sd1 sd2 tty0 tty1 tty2
|
||||
sh $0 st0 st1 cd0 cd1 pty0
|
||||
sh $0 st0 st1 cd0 cd1 opty
|
||||
;;
|
||||
|
||||
ramdisk)
|
||||
@ -413,46 +414,53 @@ com*|tty*) # (XXX -- com should die)
|
||||
chown uucp.wheel tty0$unit dty0$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 7 $jn
|
||||
mknod ptyp$j c 6 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 7 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.9 2002/01/21 16:19:21 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.10 2002/02/02 07:04:49 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -60,7 +60,8 @@
|
||||
# tty* alias for PC COM ports, this is what the system really wants
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Special purpose devices:
|
||||
# clockctl clock control for non root users
|
||||
@ -89,7 +90,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd wd0 wd1 sd0 sd1
|
||||
sh $0 tty0 tty1 tty2 pty0 pty1 pty2 pty3
|
||||
sh $0 tty0 tty1 tty2 pty0 pty1
|
||||
sh $0 bpf0
|
||||
sh $0 md0 random
|
||||
sh $0 scsibus0
|
||||
@ -263,46 +264,53 @@ com*|tty*) # (XXX -- com should die)
|
||||
chown uucp.wheel tty0$unit dty0$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 7 $jn
|
||||
mknod ptyp$j c 6 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 7 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.10 2002/01/13 14:19:42 manu Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.11 2002/02/02 07:04:50 tls Exp $
|
||||
#
|
||||
# Device "make" file. Valid arguments:
|
||||
# std standard devices
|
||||
@ -16,7 +16,8 @@
|
||||
# ttya 'ttya' system console
|
||||
# ttyE? Workstation console ("wscons") glass-tty emulation
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
# Tapes:
|
||||
# st* SCSI tape
|
||||
# Special purpose devices:
|
||||
@ -42,7 +43,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh -$- $0 std ttya sd0 st0 md0
|
||||
sh -$- $0 pty0 pty1 pty2 pty3 bpf0 bpf1 lkm ipl
|
||||
sh -$- $0 pty0 pty1 bpf0 bpf1 lkm ipl
|
||||
sh -$- $0 wskbd wsmouse ttyE0 ttyEcfg
|
||||
sh -$- $0 scsibus0
|
||||
sh -$- $0 clockctl
|
||||
@ -125,46 +126,53 @@ tty[ab])
|
||||
chown uucp.wheel $i
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 4 $jn
|
||||
mknod ptyp$j c 5 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 4 $unit
|
||||
mknod pty$name$j c 5 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -20,7 +20,7 @@
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# from: @(#)MAKEDEV 5.2 (Berkeley) 6/22/90
|
||||
# $NetBSD: MAKEDEV,v 1.53 2002/01/21 16:19:22 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.54 2002/02/02 07:04:50 tls Exp $
|
||||
#
|
||||
###########################################################################
|
||||
#
|
||||
@ -61,7 +61,8 @@
|
||||
# wskbd* wscons keyboard events
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Graphics devices:
|
||||
# grf* Bitmapped graphics device
|
||||
@ -92,7 +93,7 @@ do
|
||||
case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd sd0 sd1 sd2 sd3 tty0 tty1 pty0 pty1 pty2 pty3
|
||||
sh $0 std wscons fd sd0 sd1 sd2 sd3 tty0 tty1 pty0 pty1
|
||||
sh $0 st0 st1 ch0 cd0 cd1 fd0 fd1 vnd0 vnd1 vnd2 vnd3
|
||||
sh $0 ccd0 ccd1 ccd2 ccd3 md0 ss0 uk0 uk1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
@ -125,7 +126,7 @@ raminst)
|
||||
sh $0 std
|
||||
sh $0 sd0 sd1 sd2 sd3 st0 st1 cd0 cd1 md0
|
||||
sh $0 adb grf0 grf1 ttye0
|
||||
sh $0 tty0 tty1 pty0
|
||||
sh $0 tty0 tty1 opty
|
||||
;;
|
||||
|
||||
ttye*)
|
||||
@ -263,46 +264,53 @@ tty*)
|
||||
chown uucp.wheel tty0$unit dty0$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 4 $jn
|
||||
mknod ptyp$j c 5 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 4 $unit
|
||||
mknod pty$name$j c 5 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.50 2002/01/21 16:19:22 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.51 2002/02/02 07:04:50 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -69,7 +69,8 @@
|
||||
# 32 ports.
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# USB devices:
|
||||
# usb* Bus control devices used by usbd for attach/detach
|
||||
@ -118,7 +119,7 @@ case $i in
|
||||
all)
|
||||
sh $0 std wscons fd sd0 sd1 sd2 st0 st1 cd0 cd1 wd0 wd1 md0
|
||||
sh $0 ss0 ch0 uk0 uk1 vnd0 vnd1 ccd0 ccd1 ccd2 ccd3
|
||||
sh $0 random tty00 tty01 tty10 pty0 pty1 pty2 pty3 adb grf0
|
||||
sh $0 random tty00 tty01 tty10 pty0 pty1 adb grf0
|
||||
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
|
||||
sh $0 tun0 tun1 ipl usbs ttyCZ0 ttyCY0 audio openfirm
|
||||
sh $0 music rmidi0 rmidi1 rmidi2 rmidi3 rmidi4 rmidi5 rmidi6 rmidi7
|
||||
@ -139,7 +140,7 @@ audio)
|
||||
;;
|
||||
|
||||
floppy)
|
||||
sh $0 std sd0 sd1 sd2 tty00 tty01 pty0 wscons
|
||||
sh $0 std sd0 sd1 sd2 tty00 tty01 opty wscons
|
||||
sh $0 st0 st1 cd0 cd1 wd0 wd1 md0
|
||||
;;
|
||||
|
||||
@ -442,46 +443,53 @@ tty1*)
|
||||
chown uucp:wheel tty1$unit dty1$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 3 $jn
|
||||
mknod ptyp$j c 4 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 3 $unit
|
||||
mknod pty$name$j c 4 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.7 2002/01/13 14:21:26 manu Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.8 2002/02/02 07:04:51 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -58,7 +58,8 @@
|
||||
# raid* RAIDframe disk devices
|
||||
# md* memory pseudo-disk devices
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
# Special purpose devices:
|
||||
# clockctl clock control for non root users
|
||||
# bpf* packet filter
|
||||
@ -80,7 +81,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std sd0 sd1 sd2 sd3 cd0 st0 st1
|
||||
sh $0 pty0 pty1 pty2 pty3 tty0 tty1
|
||||
sh $0 pty0 pty1 tty0 tty1
|
||||
sh $0 vnd0 vnd1 vnd2 vnd3 ccd0 ccd1 ccd2 ccd3 md0 md1
|
||||
sh $0 tun0 tun1 tun2 tun3 raid0 raid1 raid2 raid3
|
||||
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
|
||||
@ -93,11 +94,11 @@ all)
|
||||
minimal|ramdisk)
|
||||
sh $0 std
|
||||
sh $0 sd0 sd1 sd2 sd3 sd4 st0 st1 ch0 cd0 cd1 ccd0 ccd1
|
||||
sh $0 md0 pty0 tty0 tty1
|
||||
sh $0 md0 opty tty0 tty1
|
||||
;;
|
||||
|
||||
floppy)
|
||||
sh $0 std sd0 sd1 cd0 st0 st1 pty0 tty0 tty1 md0
|
||||
sh $0 std sd0 sd1 cd0 st0 st1 opty tty0 tty1 md0
|
||||
;;
|
||||
|
||||
|
||||
@ -258,46 +259,53 @@ ipl)
|
||||
chmod 600 ipl ipnat ipstate ipauth
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 8 $jn
|
||||
mknod ptyp$j c 9 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 8 $unit
|
||||
mknod pty$name$j c 9 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
tty*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.11 2002/01/19 18:59:20 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.12 2002/02/02 07:04:51 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -51,7 +51,8 @@
|
||||
# tty* alias for PC COM ports, this is what the system really wants
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* stock lp
|
||||
@ -85,7 +86,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std fd wt0 fd0 fd1 wd0 wd1 wd2 wd3 sd0 sd1 sd2 sd3 sd4
|
||||
sh $0 tty0 tty1 pty0 pty1 pty2 pty3
|
||||
sh $0 tty0 tty1 pty0 pty1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 st0 st1 ch0 cd0 cd1 mcd0 vnd0 vnd1 lpa0 lpa1 lpa2
|
||||
sh $0 lpt0 lpt1 lpt2 bpf0 bpf1 bpf2 bpf3 tun0 tun1 ipl
|
||||
@ -97,7 +98,7 @@ all)
|
||||
|
||||
floppy)
|
||||
sh $0 std wt0 fd0 fd1 wd0 wd1 sd0 sd1 sd2 tty0 tty1
|
||||
sh $0 st0 st1 cd0 cd1 mcd0 pty0
|
||||
sh $0 st0 st1 cd0 cd1 mcd0 opty
|
||||
;;
|
||||
|
||||
ramdisk)
|
||||
@ -209,46 +210,53 @@ com*|tty*) # (XXX -- com should die)
|
||||
chown uucp.wheel tty0$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod tty$name$j c 5 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
mknod ttyp$j c 3 $jn
|
||||
mknod ptyp$j c 4 $jn
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 3 $unit
|
||||
mknod pty$name$j c 4 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.29 2002/01/19 18:59:20 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.30 2002/02/02 07:04:51 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -55,7 +55,8 @@
|
||||
# so is not created by default
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* stock lp
|
||||
@ -82,7 +83,7 @@ do
|
||||
case $i in
|
||||
|
||||
all)
|
||||
sh $0 std fd sd0 sd1 sd2 pty0 pty1 pty2 pty3
|
||||
sh $0 std fd sd0 sd1 sd2 pty0 pty1
|
||||
sh $0 ttyZ1 ttyZ2 ttyZ3 ttyC1 ttyC2 ttyC3
|
||||
sh $0 st0 st1 ch0 cd0 cd1 lpa0 lpt0 vnd0 vnd1
|
||||
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
|
||||
@ -186,46 +187,53 @@ ttyC*)
|
||||
chown uucp.wheel ttyC$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 4 $jn
|
||||
mknod ptyp$j c 5 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 4 $unit
|
||||
mknod pty$name$j c 5 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.10 2002/01/21 16:19:22 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.11 2002/02/02 07:04:51 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -70,7 +70,8 @@
|
||||
# fcom DC21285 COM port
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* stock lp
|
||||
@ -126,7 +127,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd fd0 fd1 wd0 wd1 wd2 wd3 md0 md1 sd0 sd1 sd2 sd3
|
||||
sh $0 tty0 tty1 pty0 pty1 pty2 pty3 st0 st1 ch0 cd0 cd1 vnd0 vnd1
|
||||
sh $0 tty0 tty1 pty0 pty1 st0 st1 ch0 cd0 cd1 vnd0 vnd1
|
||||
sh $0 ccd0 ccd1 uk0 uk1 ss0
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 ttyv0
|
||||
@ -141,7 +142,7 @@ all)
|
||||
|
||||
ramdisk|floppy)
|
||||
sh $0 std fd0 fd1 wd0 wd1 wd2 wd3 md0 md1 sd0 sd1 sd2 sd3
|
||||
sh $0 tty0 tty1 pty0 ttyv0
|
||||
sh $0 tty0 tty1 opty ttyv0
|
||||
sh $0 st0 st1 cd0 cd1
|
||||
;;
|
||||
|
||||
@ -366,48 +367,53 @@ fcom*)
|
||||
chmod 600 $fcom
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v
|
||||
echo "$0: $i: pty unit conflicts with console ttyv* devices."
|
||||
continue;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 7 $jn
|
||||
mknod ptyp$j c 6 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 7 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.11 2002/01/19 18:59:21 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.12 2002/02/02 07:04:52 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -57,7 +57,8 @@
|
||||
# raid* RAIDframe disk devices
|
||||
# md* memory pseudo-disk devices
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
# Special purpose devices:
|
||||
# clockctl clock control for non root users
|
||||
# fd file descriptors
|
||||
@ -80,7 +81,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std fd sd0 sd1 sd2 sd3 cd0 st0 st1
|
||||
sh $0 pty0 pty1 pty2 pty3 tty0 tty1
|
||||
sh $0 pty0 pty1 tty0 tty1
|
||||
sh $0 vnd0 vnd1 vnd2 vnd3 ccd0 ccd1 ccd2 ccd3 md0 md1
|
||||
sh $0 tun0 tun1 tun2 tun3
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
@ -93,7 +94,7 @@ all)
|
||||
|
||||
floppy)
|
||||
sh $0 std sd0 sd1 sd2 sd3 cd0 st0 st1
|
||||
sh $0 pty0 tty0 tty1 md0
|
||||
sh $0 opty tty0 tty1 md0
|
||||
;;
|
||||
|
||||
std)
|
||||
@ -271,46 +272,53 @@ ipl)
|
||||
chmod 600 ipl ipnat ipstate ipauth
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 8 $jn
|
||||
mknod ptyp$j c 9 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 8 $unit
|
||||
mknod pty$name$j c 9 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
tty*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.22 2002/01/21 16:19:23 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.23 2002/02/02 07:04:52 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -57,7 +57,8 @@
|
||||
# raid* RAIDframe disk devices
|
||||
# md* memory pseudo-disk devices
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
# Special purpose devices:
|
||||
# clockctl clock control for non root users
|
||||
# bpf* packet filter
|
||||
@ -80,7 +81,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd sd0 sd1 sd2 sd3 cd0 st0 st1
|
||||
sh $0 pty0 pty1 pty2 pty3 tty0 tty1
|
||||
sh $0 pty0 pty1 tty0 tty1
|
||||
sh $0 vnd0 vnd1 vnd2 vnd3 ccd0 ccd1 ccd2 ccd3 md0 md1
|
||||
sh $0 tun0 tun1 tun2 tun3
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
@ -92,7 +93,7 @@ all)
|
||||
;;
|
||||
|
||||
floppy)
|
||||
sh $0 std sd0 sd1 cd0 st0 st1 pty0 tty0 tty1 md0 wscons
|
||||
sh $0 std sd0 sd1 cd0 st0 st1 opty tty0 tty1 md0 wscons
|
||||
;;
|
||||
|
||||
std)
|
||||
@ -335,46 +336,53 @@ wsmouse*)
|
||||
chmod 600 $wsmouse
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 8 $jn
|
||||
mknod ptyp$j c 9 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 8 $unit
|
||||
mknod pty$name$j c 9 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
tty*)
|
||||
|
@ -20,7 +20,7 @@
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# from: @(#)MAKEDEV 5.2 (Berkeley) 6/22/90
|
||||
# $NetBSD: MAKEDEV,v 1.22 2002/01/21 16:19:23 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.23 2002/02/02 07:04:52 tls Exp $
|
||||
#
|
||||
###########################################################################
|
||||
#
|
||||
@ -60,7 +60,8 @@
|
||||
# wskbd* wscons keyboard events
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Graphics devices:
|
||||
#
|
||||
@ -85,7 +86,7 @@ do
|
||||
case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd sd0 sd1 sd2 sd3 tty0 tty1 pty0 pty1 pty2 pty3
|
||||
sh $0 std wscons fd sd0 sd1 sd2 sd3 tty0 tty1 pty0 pty1
|
||||
sh $0 st0 st1 ch0 cd0 cd1 vnd0 vnd1 vnd2 vnd3
|
||||
sh $0 ccd0 ccd1 ccd2 ccd3 md0 ss0 uk0 uk1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
@ -116,7 +117,7 @@ std)
|
||||
raminst)
|
||||
sh $0 std
|
||||
sh $0 sd0 sd1 sd2 sd3 st0 st1 cd0 cd1
|
||||
sh $0 tty0 tty1 pty0
|
||||
sh $0 tty0 tty1 opty
|
||||
;;
|
||||
|
||||
wscons)
|
||||
@ -263,46 +264,53 @@ tty*)
|
||||
chown uucp.wheel tty0$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 4 $jn
|
||||
mknod ptyp$j c 5 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 4 $unit
|
||||
mknod pty$name$j c 5 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.33 2002/01/19 18:59:22 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.34 2002/02/02 07:04:53 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -54,7 +54,8 @@
|
||||
# tty* rs232 devices
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* Matthias's lp interface
|
||||
@ -83,7 +84,7 @@ case $i in
|
||||
all)
|
||||
sh $0 std fd sd0 sd1 sd2 sd3 st0 st1 cd0 cd1
|
||||
sh $0 tty0 tty1 tty2 tty3 tty4 tty5 tty6 tty7
|
||||
sh $0 pty0 pty1 pty2 pty3 vnd0 vnd1
|
||||
sh $0 pty0 pty1 vnd0 vnd1
|
||||
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
|
||||
sh $0 tun0 tun1 tun2 lkm ipl ccd0 ccd1 ccd2
|
||||
sh $0 ccd3 md0 ss0 ch0 uk0 uk1 lpt0 lpt1 rtc
|
||||
@ -96,7 +97,7 @@ all)
|
||||
|
||||
floppy)
|
||||
sh $0 std sd0 sd1 sd2 tty0 tty1 tty2 tty3
|
||||
sh $0 st0 st1 cd0 cd1 md0 pty0
|
||||
sh $0 st0 st1 cd0 cd1 md0 opty
|
||||
;;
|
||||
|
||||
std)
|
||||
@ -186,46 +187,53 @@ tty*)
|
||||
chown uucp.wheel tty0$unit cu0$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod tty$name$j c 5 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
mknod ttyp$j c 3 $jn
|
||||
mknod ptyp$j c 4 $jn
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 3 $unit
|
||||
mknod pty$name$j c 4 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.4 2002/01/21 16:19:23 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.5 2002/02/02 07:04:53 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -51,7 +51,8 @@
|
||||
# wskbd* wscons keyboard events
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Special purpose devices:
|
||||
# clockctl clock control for non root users
|
||||
@ -76,7 +77,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd wd0 wd1
|
||||
sh $0 pty0 pty1 pty2 pty3
|
||||
sh $0 pty0 pty1
|
||||
sh $0 bpf0 bpf1 bpf2 bpf3
|
||||
sh $0 vnd0 vnd1 vnd2 vnd3
|
||||
sh $0 random
|
||||
@ -230,46 +231,53 @@ ccd*|vnd*|wd*|raid*)
|
||||
chmod 640 $name$unit? r$name$unit?
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 7 $jn
|
||||
mknod ptyp$j c 6 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 7 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
bpf*|tun*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.45 2002/01/19 18:59:22 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.46 2002/02/02 07:04:53 tls Exp $
|
||||
#
|
||||
# from: @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
|
||||
#
|
||||
@ -30,7 +30,8 @@
|
||||
# dc* 4 channel serial interface (keyboard, mouse, modem, printer)
|
||||
# scc* 82530 serial interface
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
# Special purpose devices:
|
||||
# clockctl clock control for non root users
|
||||
# audio* phone-quality audio on Personal DECstations
|
||||
@ -63,7 +64,7 @@ case $i in
|
||||
all)
|
||||
sh $0 minimal fd
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 pty0 pty1 pty2 pty3 vnd0 vnd1 vnd2 vnd3 ccd0 ccd1 ccd2 ccd3
|
||||
sh $0 pty0 pty1 vnd0 vnd1 vnd2 vnd3 ccd0 ccd1 ccd2 ccd3
|
||||
sh $0 tun0 tun1 tun2 tun3
|
||||
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
|
||||
sh $0 fb0 fb1 fb2
|
||||
@ -82,7 +83,7 @@ minimal)
|
||||
sh $0 sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7
|
||||
sh $0 sd8 sd9 sd10 sd11 sd12 sd13 sd14 sd15
|
||||
sh $0 st0 st1
|
||||
sh $0 md0 dz0 zs0 pty0
|
||||
sh $0 md0 dz0 zs0 opty
|
||||
;;
|
||||
|
||||
std)
|
||||
@ -268,29 +269,8 @@ mouse)
|
||||
ln -s fb0 mouse
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
@ -302,12 +282,40 @@ pty*)
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 4 $jn
|
||||
mknod ptyp$j c 5 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 4 $unit
|
||||
mknod pty$name$j c 5 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
ipl)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.17 2002/01/21 16:19:24 abs Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.18 2002/02/02 07:04:54 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -66,7 +66,8 @@
|
||||
# ttyCY* Cyclom-Y multiport serial boards. Each "unit" makes 32 ports.
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* stock lp
|
||||
@ -112,7 +113,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wscons fd fd0 fd1 wd0 wd1 wd2 wd3 sd0 sd1 sd2 sd3 sd4
|
||||
sh $0 tty0 tty1 pty0 pty1 pty2 pty3
|
||||
sh $0 tty0 tty1 pty0 pty1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 st0 st1 ch0 cd0 cd1 vnd0 vnd1
|
||||
sh $0 lpt0 lpt1 lpt2 ttyv0 tun0 tun1 ipl
|
||||
@ -130,7 +131,7 @@ all)
|
||||
|
||||
floppy)
|
||||
sh $0 std fd0 wd0 wd1 sd0 sd1 sd2 tty0 tty1
|
||||
sh $0 cd0 cd1 ttyE0 pty0
|
||||
sh $0 cd0 cd1 ttyE0 opty
|
||||
;;
|
||||
|
||||
ramdisk)
|
||||
@ -341,48 +342,53 @@ tty*)
|
||||
chown uucp.wheel tty0$unit dty0$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v
|
||||
echo "$0: $i: pty unit conflicts with console ttyv* devices."
|
||||
continue;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod tty$name$j c 5 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
mknod ttyp$j c 3 $jn
|
||||
mknod ptyp$j c 4 $jn
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 3 $unit
|
||||
mknod pty$name$j c 4 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.11 2002/01/19 18:59:22 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.12 2002/02/02 07:04:54 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -67,7 +67,8 @@
|
||||
# ttyCY* Cyclom-Y multiport serial boards. Each "unit" makes 32 ports.
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* stock lp
|
||||
@ -110,7 +111,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std fd wt0 fd0 fd1 wd0 wd1 wd2 wd3 sd0 sd1 sd2 sd3 sd4
|
||||
sh $0 tty0 tty1 pty0 pty1 pty2 pty3
|
||||
sh $0 tty0 tty1 pty0 pty1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 st0 st1 ch0 cd0 cd1 vnd0 vnd1 lpa0 lpa1 lpa2
|
||||
sh $0 lpt0 lpt1 lpt2 tun0 tun1 ipl
|
||||
@ -125,7 +126,7 @@ all)
|
||||
|
||||
floppy)
|
||||
sh $0 std fd0 wd0 wd1 sd0 sd1 sd2 tty0 tty1
|
||||
sh $0 cd0 cd1 ttyE0 pty0
|
||||
sh $0 cd0 cd1 ttyE0 opty
|
||||
;;
|
||||
|
||||
ramdisk)
|
||||
@ -337,46 +338,53 @@ com*|tty*) # (XXX -- com should die)
|
||||
chown uucp.wheel tty0$unit dty0$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod tty$name$j c 5 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
mknod ttyp$j c 3 $jn
|
||||
mknod ptyp$j c 4 $jn
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 3 $unit
|
||||
mknod pty$name$j c 4 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh -
|
||||
# $NetBSD: MAKEDEV,v 1.14 2002/01/19 18:59:22 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.15 2002/02/02 07:04:54 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -76,7 +76,8 @@
|
||||
# ttyZ* Zilog 8530 ("zstty") serial ports
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# ISDN devices:
|
||||
# i4b communication between userland isdnd and kernel
|
||||
@ -110,7 +111,7 @@ do
|
||||
case $i in
|
||||
|
||||
all)
|
||||
sh $0 std wd0 wd1 sd0 sd1 sd2 sd3 pty0 pty1 pty2 pty3
|
||||
sh $0 std wd0 wd1 sd0 sd1 sd2 sd3 pty0 pty1
|
||||
sh $0 st0 st1 ch0 cd0 cd1 vnd0 vnd1 vnd2 vnd3
|
||||
sh $0 ccd0 ccd1 ccd2 ccd3 md0 md1 ss0 ss1 uk0 uk1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
@ -125,10 +126,10 @@ all)
|
||||
|
||||
minimal)
|
||||
sh $0 std
|
||||
sh $0 sd0 sd1 sd2 sd3 pty0 st0 st1 ch0 cd0 cd1 ccd0 ccd1 md0
|
||||
sh $0 sd0 sd1 sd2 sd3 opty st0 st1 ch0 cd0 cd1 ccd0 ccd1 md0
|
||||
sh $0 ttyC0 ttyC1
|
||||
sh $0 ttyZ0 ttyZ1
|
||||
sh $0 pty0
|
||||
sh $0 opty
|
||||
;;
|
||||
|
||||
isdn)
|
||||
@ -305,46 +306,53 @@ ttyC*|ttyZ*)
|
||||
chown uucp.wheel $name$unit $dname$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 22 $jn
|
||||
mknod ptyp$j c 23 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 22 $unit
|
||||
mknod pty$name$j c 23 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.68 2002/01/19 18:59:23 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.69 2002/02/02 07:04:55 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -60,7 +60,8 @@
|
||||
# raid* RAIDframe disk driver
|
||||
# md* memory pseudo-disk devices
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
# ISDN devices:
|
||||
# i4b communication between userland isdnd and kernel
|
||||
# i4bctl control device
|
||||
@ -107,7 +108,7 @@ all)
|
||||
sh -$- $0 fd sd0 sd1 sd2 sd3 sd4 xd0 xd1 xd2 xd3 xy0 xy1 xy2 xy3
|
||||
sh -$- $0 cd0 st0 st1 fd0 md0 md1
|
||||
sh -$- $0 audio0 audio1 audio2 audio3
|
||||
sh -$- $0 pty0 pty1 pty2 pty3 vnd0 vnd1 vnd2 vnd3 audio
|
||||
sh -$- $0 pty0 pty1 vnd0 vnd1 vnd2 vnd3 audio
|
||||
sh -$- $0 tun0 tun1 tun2 tun3
|
||||
sh -$- $0 ccd0 ccd1 ccd2 ccd3
|
||||
sh -$- $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
@ -123,7 +124,7 @@ all)
|
||||
;;
|
||||
|
||||
floppy|ramdisk)
|
||||
sh -$- $0 std ttya ttyb ttyc ttyd pty0
|
||||
sh -$- $0 std ttya ttyb ttyc ttyd opty
|
||||
sh -$- $0 sd0 sd1 sd2 sd3 sd4 sd5 md0
|
||||
sh -$- $0 cd0 cd1 st0 st1 fd0
|
||||
;;
|
||||
@ -386,46 +387,53 @@ ipl)
|
||||
chmod 600 ipl ipnat ipstate ipauth
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 20 $jn
|
||||
mknod ptyp$j c 21 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 20 $unit
|
||||
mknod pty$name$j c 21 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
random)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.28 2002/01/24 22:22:26 eeh Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.29 2002/02/02 07:04:55 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -62,7 +62,8 @@
|
||||
# tty* Z88530 serial controllers
|
||||
# ttyC* NS16550 serial controllers
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
# ISDN devices:
|
||||
# i4b communication between userland isdnd and kernel
|
||||
# i4bctl control device
|
||||
@ -109,7 +110,7 @@ all)
|
||||
sh -$- $0 fd sd0 sd1 sd2 sd3 sd4 ss0 ch0 uk0 uk1
|
||||
sh -$- $0 wd0 wd1 wd2 wd3 cd0 st0 st1 fd0 md0 md1
|
||||
sh -$- $0 audio0 audio1 audio2 audio3
|
||||
sh -$- $0 pty0 pty1 pty2 pty3 vnd0 vnd1 vnd2 vnd3 audio
|
||||
sh -$- $0 pty0 pty1 vnd0 vnd1 vnd2 vnd3 audio
|
||||
sh -$- $0 tun0 tun1 tun2 tun3
|
||||
sh -$- $0 ccd0 ccd1 ccd2 ccd3
|
||||
sh -$- $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
@ -123,7 +124,7 @@ all)
|
||||
sh -$- $0 clockctl
|
||||
;;
|
||||
floppy|ramdisk)
|
||||
sh -$- $0 std ttya ttyb ttyc ttyd pty0
|
||||
sh -$- $0 std ttya ttyb ttyc ttyd opty
|
||||
sh -$- $0 sd0 sd1 sd2 sd3 sd4 sd5 md0
|
||||
sh -$- $0 wd0 wd1 cd0 cd1 st0 st1 fd0
|
||||
sh -$- $0 random
|
||||
@ -379,46 +380,53 @@ ipl)
|
||||
chmod 600 ipl ipnat ipstate ipauth
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 20 $jn
|
||||
mknod ptyp$j c 21 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 20 $unit
|
||||
mknod pty$name$j c 21 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
random)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.5 2002/01/19 18:59:23 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.6 2002/02/02 07:04:56 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -54,7 +54,8 @@
|
||||
# raid* RAIDframe disk driver
|
||||
# md* memory pseudo-disk devices
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
# Special purpose devices:
|
||||
# clockctl clock control for non root users
|
||||
# bwtwo* monochromatic frame buffer
|
||||
@ -91,7 +92,7 @@ unit=`expr $arg : '[a-z][a-z]*\([0-9][0-9]*\)'`
|
||||
case $arg in
|
||||
|
||||
all)
|
||||
sh $0 std pty0 pty1 pty2 pty3
|
||||
sh $0 std pty0 pty1
|
||||
sh $0 bwtwo0 cgtwo0
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 sd0 sd1 sd2 sd3 sd4 sd5 sd6
|
||||
@ -147,46 +148,53 @@ tun*)
|
||||
mk tun$unit c 24 $unit 600
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${arg#pty}
|
||||
case $unit in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 20 $jn
|
||||
mknod ptyp$j c 21 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 20 $unit
|
||||
mknod pty$name$j c 21 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
ccd*|cd*|fd*|sd*|xd*|xy*|vnd*|raid*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.36 2002/01/19 18:59:23 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.37 2002/02/02 07:04:56 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -55,7 +55,8 @@
|
||||
# raid* RAIDframe disk driver
|
||||
# md* memory pseudo-disk devices
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
# Special purpose devices:
|
||||
# clockctl clock control for non root users
|
||||
# bwtwo* monochromatic frame buffer
|
||||
@ -92,7 +93,7 @@ unit=`expr $arg : '[a-z][a-z]*\([0-9][0-9]*\)'`
|
||||
case $arg in
|
||||
|
||||
all)
|
||||
sh $0 std fd pty0 pty1 pty2 pty3
|
||||
sh $0 std fd pty0 pty1
|
||||
sh $0 bwtwo0 cgtwo0 cgfour0
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 sd0 sd1 sd2 sd3 sd4 sd5 sd6
|
||||
@ -152,46 +153,53 @@ tun*)
|
||||
mk tun$unit c 24 $unit 600
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${arg#pty}
|
||||
case $unit in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 20 $jn
|
||||
mknod ptyp$j c 21 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 20 $unit
|
||||
mknod pty$name$j c 21 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
ccd*|cd*|fd*|sd*|xd*|xy*|vnd*|raid*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh -
|
||||
# $NetBSD: MAKEDEV,v 1.40 2002/01/19 18:59:24 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.41 2002/02/02 07:04:56 tls Exp $
|
||||
#
|
||||
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
|
||||
#
|
||||
@ -45,7 +45,8 @@
|
||||
# dmz* unibus dmz32
|
||||
# dl* unibus dl11
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
# Printers:
|
||||
# ct* unibus parallel interface to CAT typesetter
|
||||
# lp* unibus lp11 parallel interface
|
||||
@ -76,7 +77,7 @@ do
|
||||
case $i in
|
||||
|
||||
all)
|
||||
sh $0 std fd vnd0 ccd0 pty0 pty1 pty2 pty3 lkm random
|
||||
sh $0 std fd vnd0 ccd0 pty0 pty1 lkm random
|
||||
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
|
||||
sh $0 mt0 mt1 ts0 ts1 st0 st1 uk0 ss0 cd0 vt0
|
||||
sh $0 ra0 ra1 ra2 ra3 hp0 hp1 hp2 hp3 sd0 sd1 sd2 sd3 rd0 rd1 rd2
|
||||
@ -422,46 +423,53 @@ lp*|va*|vp*)
|
||||
esac
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty};
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 20 $jn
|
||||
mknod ptyp$j c 21 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 20 $unit
|
||||
mknod pty$name$j c 21 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
np*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.9 2002/01/19 18:59:24 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.10 2002/02/02 07:04:57 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -65,7 +65,8 @@
|
||||
# ttyCY* Cyclom-Y multiport serial boards. Each "unit" makes 32 ports.
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# lpt* stock lp
|
||||
@ -108,7 +109,7 @@ case $i in
|
||||
|
||||
all)
|
||||
sh $0 std fd wt0 wd0 wd1 wd2 wd3 sd0 sd1 sd2 sd3 sd4
|
||||
sh $0 tty0 tty1 pty0 pty1 pty2 pty3
|
||||
sh $0 tty0 tty1 pty0 pty1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 st0 st1 ch0 cd0 cd1 vnd0 vnd1 lpa0 lpa1 lpa2
|
||||
sh $0 lpt0 lpt1 lpt2 tun0 tun1 ipl
|
||||
@ -313,46 +314,53 @@ com*|tty*) # (XXX -- com should die)
|
||||
chown uucp.wheel tty0$unit dty0$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod tty$name$j c 5 $unit
|
||||
mknod pty$name$j c 6 $unit
|
||||
mknod ttyp$j c 3 $jn
|
||||
mknod ptyp$j c 4 $jn
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 3 $unit
|
||||
mknod pty$name$j c 4 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
st*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.40 2002/01/19 18:59:24 oster Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.41 2002/02/02 07:04:57 tls Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -74,7 +74,8 @@
|
||||
# com* PSX16550 serial board
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
# pty* set of 62 master and slave pseudo terminals
|
||||
# opty first 16 ptys, to save inodes on install media
|
||||
#
|
||||
# Printers:
|
||||
# par* motherboard parallel port
|
||||
@ -115,7 +116,7 @@ all)
|
||||
sh $0 std fd st0 st1 ttye0 ttye1 mouse0 mouse1
|
||||
sh $0 tty00 tty01 tty02 tty03 com0 com1 grf0 grf1 kbd
|
||||
sh $0 sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7
|
||||
sh $0 vnd0 vnd1 vnd2 vnd3 vnd4 vnd5 vnd6 pty0 pty1 pty2 pty3
|
||||
sh $0 vnd0 vnd1 vnd2 vnd3 vnd4 vnd5 vnd6 pty0 pty1
|
||||
sh $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
|
||||
sh $0 cd0 ss0 fd0 fd1 fd2 fd3
|
||||
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
|
||||
@ -129,7 +130,7 @@ all)
|
||||
|
||||
floppy)
|
||||
sh $0 std fd0 sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7
|
||||
sh $0 tty00 cd0 ttye0 pty0
|
||||
sh $0 tty00 cd0 ttye0 opty
|
||||
;;
|
||||
|
||||
ramdisk)
|
||||
@ -394,47 +395,53 @@ kbd)
|
||||
chmod 600 kbd
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
0) name=p;;
|
||||
1) name=q;;
|
||||
2) name=r;;
|
||||
3) name=s;;
|
||||
4) name=t;;
|
||||
5) name=u;;
|
||||
6) name=v;;
|
||||
7) name=w;;
|
||||
8) name=x;;
|
||||
9) name=y;;
|
||||
10) name=z;;
|
||||
11) name=P;;
|
||||
12) name=Q;;
|
||||
13) name=R;;
|
||||
14) name=S;;
|
||||
15) name=T;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-f] pty$name[0-9a-f]
|
||||
opty)
|
||||
rm -f ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
do
|
||||
case $j in
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
[0-9]) jn=$j ;;
|
||||
a) jn=10 ;;
|
||||
b) jn=11 ;;
|
||||
c) jn=12 ;;
|
||||
d) jn=13 ;;
|
||||
e) jn=14 ;;
|
||||
f) jn=15 ;;
|
||||
esac
|
||||
unit=$(($class * 16 + $jn))
|
||||
mknod ttyp$j c 4 $jn
|
||||
mknod ptyp$j c 5 $jn
|
||||
done
|
||||
chgrp wheel ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
|
||||
;;
|
||||
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
|
||||
case $name in
|
||||
v) echo "$0: $i: pty unit conflicts with console ttyv0 device."
|
||||
continue;;
|
||||
?) ;;
|
||||
*) echo "$0: $i: pty unit must be between 0 and 15"
|
||||
continue ;;
|
||||
esac
|
||||
rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
jn=0
|
||||
while [ $jn -lt 62 ]
|
||||
do
|
||||
j=`echo 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | dd bs=1 count=1 skip=$jn 2>/dev/null`
|
||||
skip=0
|
||||
if [ $jn -ge 16 ]; then
|
||||
skip=$(($class * 30 + 256 - 16))
|
||||
fi
|
||||
unit=$(($class * 62 + $jn + $skip))
|
||||
mknod tty$name$j c 4 $unit
|
||||
mknod pty$name$j c 5 $unit
|
||||
jn=$(($jn + 1))
|
||||
done
|
||||
chgrp wheel tty$name? pty$name?
|
||||
chmod 666 tty$name? pty$name?
|
||||
chgrp wheel tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
chmod 666 tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
|
||||
;;
|
||||
|
||||
bpf*|tun*|par*)
|
||||
|
Loading…
Reference in New Issue
Block a user