|
|
@ -42,10 +42,11 @@ |
|
|
|
# ch* SCSI media changers |
|
|
|
# st* SCSI tape drives |
|
|
|
# Terminal ports: |
|
|
|
# tty[0-7][0-9a-f] NS16x50 serial ports |
|
|
|
# cua[a-z]* Zilog 8530 serial port |
|
|
|
# tty[a-z]* Zilog 8530 serial port |
|
|
|
# magma* Magma multiport cards |
|
|
|
# spif* "spif" multiport cards |
|
|
|
# tty[0-7][0-9a-f] NS16x50 serial ports |
|
|
|
# tty[a-z]* Zilog 8530 serial port |
|
|
|
# ttyh* Sab82532 serial devices |
|
|
|
# ttyV* virtual console concentrator |
|
|
|
# Pseudo terminals: |
|
|
@ -54,21 +55,21 @@ |
|
|
|
# tty* Set of 62 slave pseudo terminals |
|
|
|
# Console ports: |
|
|
|
# console PROM console |
|
|
|
# wscons Minimal wscons devices |
|
|
|
# ttyC-J* wscons display devices |
|
|
|
# wscons Minimal wscons devices |
|
|
|
# wskbd* wscons keyboards |
|
|
|
# wsmux wscons keyboard/mouse mux devices |
|
|
|
# Pointing devices: |
|
|
|
# wsmouse* wscons mice |
|
|
|
# Printers: |
|
|
|
# bpp* Parallel port |
|
|
|
# bppmag[mno] Magma parallel port |
|
|
|
# bpp[jkl] "spif" parallel port |
|
|
|
# bppmag[mno] Magma parallel port |
|
|
|
# lpa* Polled printer port |
|
|
|
# lpt* IEEE 1284 centronics printer |
|
|
|
# USB devices: |
|
|
|
# uall All USB devices |
|
|
|
# ttyU* USB serial ports |
|
|
|
# uall All USB devices |
|
|
|
# ugen* Generic USB devices |
|
|
|
# uhid* Generic HID devices |
|
|
|
# ulpt* Printer devices |
|
|
@ -79,12 +80,14 @@ |
|
|
|
# audio* Audio devices |
|
|
|
# bio ioctl tunnel pseudo-device |
|
|
|
# bpf* Berkeley Packet Filter |
|
|
|
# bthub* Bluetooth Hubs |
|
|
|
# crypto Hardware crypto access driver |
|
|
|
# diskmap Disk mapper |
|
|
|
# fd fd/* nodes |
|
|
|
# hotplug devices hot plugging |
|
|
|
# lkm Loadable kernel modules interface |
|
|
|
# nnpfs* NNPFS filesystem node |
|
|
|
# openprom PROM settings |
|
|
|
# magma* Magma multiport cards |
|
|
|
# pci* PCI bus devices |
|
|
|
# pf* Packet Filter |
|
|
|
# *random In-kernel random data source |
|
|
@ -93,10 +96,7 @@ |
|
|
|
# uk* Unknown SCSI devices |
|
|
|
# uperf Performance counters |
|
|
|
# video* Video V4L2 devices |
|
|
|
# nnpfs* NNPFS filesystem node |
|
|
|
# vscsi* Virtual SCSI controller |
|
|
|
# bthub* Bluetooth Hubs |
|
|
|
# diskmap Disk mapper |
|
|
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin |
|
|
|
T=$0 |
|
|
|
|
|
|
@ -243,22 +243,10 @@ std) |
|
|
|
M mdesc c 70 1 640 kmem |
|
|
|
;; |
|
|
|
|
|
|
|
diskmap) |
|
|
|
M diskmap c 130 0 640 operator |
|
|
|
;; |
|
|
|
|
|
|
|
bthub*) |
|
|
|
M bthub$U c 129 $U |
|
|
|
;; |
|
|
|
|
|
|
|
vscsi*) |
|
|
|
M vscsi$U c 128 $U 600 |
|
|
|
;; |
|
|
|
|
|
|
|
nnpfs*) |
|
|
|
M nnpfs$U c 51 $U 600 |
|
|
|
;; |
|
|
|
|
|
|
|
video*) |
|
|
|
M video$U c 44 $U |
|
|
|
MKlist[${#MKlist[*]}]=";[ -e video ] || ln -s video$U video" |
|
|
@ -298,29 +286,14 @@ pci*) |
|
|
|
MKlist[${#MKlist[*]}]=";[ -h pci ] || ln -sf pci0 pci" |
|
|
|
;; |
|
|
|
|
|
|
|
magma*) |
|
|
|
case $U in |
|
|
|
0) offset=0 nam=m;; |
|
|
|
1) offset=16 nam=n;; |
|
|
|
2) offset=32 nam=o;; |
|
|
|
*) echo "bad unit for $i: $U"; exit 127;; |
|
|
|
esac |
|
|
|
offset=$(($U*64)) |
|
|
|
n=0 |
|
|
|
while [ $n -lt 16 ] |
|
|
|
do |
|
|
|
name=${nam}`hex $n` |
|
|
|
M tty$name c 71 $(($offset+$n)) 660 dialer uucp |
|
|
|
n=$(($n+1)) |
|
|
|
done |
|
|
|
M bpp${nam}0 c 72 $(($offset+0)) 600 |
|
|
|
M bpp${nam}1 c 72 $(($offset+1)) 600 |
|
|
|
;; |
|
|
|
|
|
|
|
openprom) |
|
|
|
M openprom c 70 0 |
|
|
|
;; |
|
|
|
|
|
|
|
nnpfs*) |
|
|
|
M nnpfs$U c 51 $U 600 |
|
|
|
;; |
|
|
|
|
|
|
|
lkm) |
|
|
|
M lkm c 112 0 640 _lkm |
|
|
|
;; |
|
|
@ -335,10 +308,18 @@ fd) |
|
|
|
MKlist[${#MKlist[*]}]=";chmod 555 fd" |
|
|
|
;; |
|
|
|
|
|
|
|
diskmap) |
|
|
|
M diskmap c 130 0 640 operator |
|
|
|
;; |
|
|
|
|
|
|
|
crypto) |
|
|
|
M crypto c 75 0 |
|
|
|
;; |
|
|
|
|
|
|
|
bthub*) |
|
|
|
M bthub$U c 129 $U |
|
|
|
;; |
|
|
|
|
|
|
|
bpf*) |
|
|
|
M bpf$U c 105 $U 600 |
|
|
|
;; |
|
|
@ -387,6 +368,12 @@ ugen*) |
|
|
|
done |
|
|
|
;; |
|
|
|
|
|
|
|
uall) |
|
|
|
R ttyU0 ttyU1 ttyU2 ttyU3 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 |
|
|
|
R uhid2 uhid3 uscanner0 urio0 usb0 usb1 usb2 usb3 usb4 usb5 |
|
|
|
R usb6 usb7 |
|
|
|
;; |
|
|
|
|
|
|
|
ttyU[0-9a-zA-Z]) |
|
|
|
U=${i#ttyU*} |
|
|
|
o=$(alph2d $U) |
|
|
@ -394,12 +381,6 @@ ttyU[0-9a-zA-Z]) |
|
|
|
M cuaU$U c 95 $(($o+128)) 660 dialer uucp |
|
|
|
;; |
|
|
|
|
|
|
|
uall) |
|
|
|
R ttyU0 ttyU1 ttyU2 ttyU3 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 |
|
|
|
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@ ttyh*) |
|
|
|
M ttyh$U c 77 $U 660 dialer uucp |
|
|
|
;; |
|
|
|
|
|
|
|
tty[a-z]) |
|
|
|
u=${i#tty*} |
|
|
|
case $u in |
|
|
|
a) n=0 ;; |
|
|
|
b) n=1 ;; |
|
|
|
c) n=2 ;; |
|
|
|
d) n=3 ;; |
|
|
|
*) echo unknown tty device $i ;; |
|
|
|
esac |
|
|
|
M tty$u c 12 $n 660 dialer uucp |
|
|
|
;; |
|
|
|
|
|
|
|
tty[0-7][0-9a-f]) |
|
|
|
U=${i#tty*} |
|
|
|
o=$(h2d $U) |
|
|
|
M tty$U c 36 $o 660 dialer uucp |
|
|
|
M cua$U c 36 $(($o+128)) 660 dialer uucp |
|
|
|
;; |
|
|
|
|
|
|
|
spif*) |
|
|
|
case $U in |
|
|
|
0) offset=0 nam=j;; |
|
|
@ -514,16 +514,23 @@ spif*) |
|
|
|
M bpp${nam}0 c 109 $(($offset+0)) 600 |
|
|
|
;; |
|
|
|
|
|
|
|
tty[a-z]) |
|
|
|
u=${i#tty*} |
|
|
|
case $u in |
|
|
|
a) n=0 ;; |
|
|
|
b) n=1 ;; |
|
|
|
c) n=2 ;; |
|
|
|
d) n=3 ;; |
|
|
|
*) echo unknown tty device $i ;; |
|
|
|
magma*) |
|
|
|
case $U in |
|
|
|
0) offset=0 nam=m;; |
|
|
|
1) offset=16 nam=n;; |
|
|
|
2) offset=32 nam=o;; |
|
|
|
*) echo "bad unit for $i: $U"; exit 127;; |
|
|
|
esac |
|
|
|
M tty$u c 12 $n 660 dialer uucp |
|
|
|
offset=$(($U*64)) |
|
|
|
n=0 |
|
|
|
while [ $n -lt 16 ] |
|
|
|
do |
|
|
|
name=${nam}`hex $n` |
|
|
|
M tty$name c 71 $(($offset+$n)) 660 dialer uucp |
|
|
|
n=$(($n+1)) |
|
|
|
done |
|
|
|
M bpp${nam}0 c 72 $(($offset+0)) 600 |
|
|
|
M bpp${nam}1 c 72 $(($offset+1)) 600 |
|
|
|
;; |
|
|
|
|
|
|
|
cua[a-z]) |
|
|
@ -538,13 +545,6 @@ cua[a-z]) |
|
|
|
M cua$u c 12 $(($n+128)) 660 dialer uucp |
|
|
|
;; |
|
|
|
|
|
|
|
tty[0-7][0-9a-f]) |
|
|
|
U=${i#tty*} |
|
|
|
o=$(h2d $U) |
|
|
|
M tty$U c 36 $o 660 dialer uucp |
|
|
|
M cua$U c 36 $(($o+128)) 660 dialer uucp |
|
|
|
;; |
|
|
|
|
|
|
|
st*) |
|
|
|
n=$(($U*16)) |
|
|
|
for pre in " " n e en |
|
|
|