Add Cyclades-Z nodes.
This commit is contained in:
parent
c4f772eecb
commit
bb3e285167
@ -1,5 +1,5 @@
|
||||
#!/bin/sh -
|
||||
# $NetBSD: MAKEDEV,v 1.59 2000/04/28 13:55:04 ad Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.60 2000/05/28 23:12:15 thorpej Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -69,6 +69,8 @@
|
||||
# ttyB? DEC 3000 ZS8530 ("scc") serial ports
|
||||
# ttyC? AlphaStation NS16550 ("com") serial ports
|
||||
# ttyE? Workstation console ("wscons") glass-tty emulators
|
||||
# ttyCZ? Cyclades-Z multiport serial boards. Each "unit"
|
||||
# makes 64 ports.
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
@ -126,6 +128,7 @@ all)
|
||||
sh $0 scsibus0 scsibus1 scsibus2 scsibus3
|
||||
sh $0 usbs wscons
|
||||
sh $0 music rmidi0 rmidi1 rmidi2 rmidi3 rmidi4 rmidi5 rmidi6 rmidi7
|
||||
sh $0 ttyCZ0
|
||||
;;
|
||||
|
||||
minimal)
|
||||
@ -292,6 +295,30 @@ ca*|ccd*|cd*|fd*|raid*|sd*|vnd*|wd*)
|
||||
chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h]
|
||||
;;
|
||||
|
||||
ttyCZ*)
|
||||
unit=${i#ttyCZ}
|
||||
major=61
|
||||
minor=$(($unit * 64))
|
||||
eminor=$(($minor + 64))
|
||||
while [ $minor -lt $eminor ]; do
|
||||
if [ $minor -lt 10 ]; then
|
||||
nminor=000$minor
|
||||
elif [ $minor -lt 100 ]; then
|
||||
nminor=00$minor
|
||||
elif [ $minor -lt 1000 ]; then
|
||||
nminor=0$minor
|
||||
else
|
||||
nminor=$minor
|
||||
fi
|
||||
rm -f ttyCZ$nminor dtyCZ$nminor
|
||||
mknod ttyCZ$nminor c $major $(($minor + $dialin ))
|
||||
mknod dtyCZ$nminor c $major $(($minor + $dialout ))
|
||||
chown uucp.wheel ttyCZ$nminor dtyCZ$nminor
|
||||
chmod 600 ttyCZ$nminor dtyCZ$nminor
|
||||
minor=$(($minor + 1))
|
||||
done
|
||||
;;
|
||||
|
||||
ttyEcfg)
|
||||
rm -f $i
|
||||
mknod $i c 25 255
|
||||
|
Loading…
Reference in New Issue
Block a user