Add com device.

This commit is contained in:
tsubai 1999-10-15 12:26:07 +00:00
parent b67b49b7db
commit 35133de28c
1 changed files with 13 additions and 6 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.20 1999/10/06 22:26:15 ad Exp $
# $NetBSD: MAKEDEV,v 1.21 1999/10/15 12:26:07 tsubai Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -100,7 +100,7 @@ case $i in
all)
sh $0 std 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 tty0 tty1 pty0 pty1 adb grf0 wscons
sh $0 random tty00 tty01 tty10 pty0 pty1 adb grf0 wscons
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
sh $0 tun0 tun1 ipl usbs
sh $0 lkm nvram local raid0 raid1 raid2 raid3
@ -108,7 +108,7 @@ all)
;;
floppy)
sh $0 std sd0 sd1 sd2 tty0 tty1 pty0 wscons
sh $0 std sd0 sd1 sd2 tty00 tty01 pty0 wscons
sh $0 st0 st1 cd0 cd1 wd0 wd1 md0
;;
@ -152,7 +152,6 @@ wscons)
sh $0 ttyE0 ttyE1 ttyE2 ttyE3 ttyEcfg
sh $0 wsmouse0 wsmouse1 wsmouse2 wsmouse3
sh $0 wskbd0 wskbd1 wskbd2 wskbd3
sh $0 ttyEcfg
sh $0 wsmux
;;
@ -268,14 +267,22 @@ ttyU*)
chmod 600 $ttyU $dtyU $ctyU
;;
tty*)
unit=${i#???}
tty0*)
unit=${i#????}
rm -f tty0$unit dty0$unit
mknod tty0$unit c 12 $(($unit + $dialin ))
mknod dty0$unit c 12 $(($unit + $dialout))
chown uucp:wheel tty0$unit dty0$unit
;;
tty1*)
unit=${i#????}
rm -f tty1$unit dty1$unit
mknod tty1$unit c 45 $(($unit + $dialin ))
mknod dty1$unit c 45 $(($unit + $dialout))
chown uucp:wheel tty1$unit dty1$unit
;;
pty*)
class=${i#pty}
case $class in