Redo the tty numbering again to avoid future problems. Per discussion
with Chris Demetriou.
This commit is contained in:
parent
0b0a42a47d
commit
5130c5f83b
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.27 1998/04/14 10:51:32 leo Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.28 1998/04/24 05:56:30 leo Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -67,9 +67,9 @@
|
||||
# lpt0 centronics printer
|
||||
#
|
||||
# Terminal ports:
|
||||
# tty00 8530 Channel A (formerly ser02)
|
||||
# tty01 8530 Channel B (formerly mdm02)
|
||||
# tty02 UART on first 68901 (formerly mdm01)
|
||||
# ttyA0 8530 Channel A (formerly ser02)
|
||||
# ttyA1 8530 Channel B (formerly mdm02)
|
||||
# ttyB0 UART on first 68901 (formerly mdm01)
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
@ -108,7 +108,7 @@ all)
|
||||
sh $0 vnd5 vnd6 cd0 fd0 fd1 fd2 fd3 bpf0 bpf1 bpf2 bpf3 ipl
|
||||
sh $0 ccd0 ccd1 ccd2 ccd3
|
||||
sh $0 ss0 ch0 uk0 uk1 wd0 wd1
|
||||
sh $0 tun0 tun1 lkm tty00 tty01 tty02 lpt0 local
|
||||
sh $0 tun0 tun1 lkm ttyA0 ttyA1 ttyB0 lpt0 local
|
||||
;;
|
||||
|
||||
floppy)
|
||||
@ -147,26 +147,17 @@ fd)
|
||||
chmod 666 fd/*
|
||||
;;
|
||||
|
||||
tty00) # formerly ser02
|
||||
rm -f tty00 dty00
|
||||
mknod tty00 c 7 $(( 0 + $dialin ))
|
||||
mknod dty00 c 7 $(( 0 + $dialout))
|
||||
chown uucp:wheel tty00 dty00
|
||||
;;
|
||||
ttyA*|ttyB*)
|
||||
case $i in
|
||||
ttyA*) name=tyA; unit=${i#ttyA}; major=7; minor=$(($unit * 16));;
|
||||
ttyB*) name=tyB; unit=${i#ttyB}; major=35; minor=$unit;;
|
||||
esac
|
||||
|
||||
tty01) # formerly mdm02
|
||||
rm -f tty01 dty01
|
||||
mknod tty01 c 7 $((16 + $dialin ))
|
||||
mknod dty01 c 7 $((16 + $dialout))
|
||||
chown uucp:wheel tty01 dty01
|
||||
;;
|
||||
|
||||
tty02) # formerly mdm01
|
||||
rm -f tty02 dty02
|
||||
mknod tty02 c 35 $((0 + $dialin ))
|
||||
mknod dty02 c 35 $((0 + $dialout))
|
||||
chown uucp:wheel tty02 dty02
|
||||
;;
|
||||
rm -f t$name$unit d$name$unit
|
||||
mknod t$name$unit c $major $(($minor + $dialin ))
|
||||
mknod d$name$unit c $major $(($minor + $dialout ))
|
||||
chown uucp.wheel t$name$unit d$name$unit
|
||||
;;
|
||||
|
||||
st*)
|
||||
case $i in
|
||||
|
Loading…
Reference in New Issue
Block a user