Add lpt and com
This commit is contained in:
parent
7fd0191223
commit
31bec2bf20
@ -1,5 +1,5 @@
|
||||
#!/bin/sh -
|
||||
# $NetBSD: MAKEDEV,v 1.2 2000/07/27 18:43:18 mason Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.3 2000/08/17 14:13:41 bjh21 Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -59,12 +59,15 @@
|
||||
#
|
||||
# Terminals:
|
||||
# ttyE? Workstation console ("wscons") glass-tty emulators
|
||||
# com* standard PC COM ports (XXX)
|
||||
# tty* alias for PC COM ports, this is what the system really wants
|
||||
#
|
||||
# Pseudo terminals:
|
||||
# pty* set of 16 master and slave pseudo terminals
|
||||
#
|
||||
# Special purpose devices:
|
||||
# fd file descriptors (/dev/fd/*)
|
||||
# bpf* Berkeley packet filter devices
|
||||
|
||||
dialin=0
|
||||
dialout=524288
|
||||
@ -82,6 +85,7 @@ all)
|
||||
sh $0 ccd0 ccd1 ccd2 ccd3 md0 md1
|
||||
sh $0 wskbd0 wsmouse0
|
||||
sh $0 wscons
|
||||
sh $0 com0 lpt0
|
||||
;;
|
||||
|
||||
minimal)
|
||||
@ -207,6 +211,21 @@ ttyE*)
|
||||
chown uucp.wheel $name$unit
|
||||
;;
|
||||
|
||||
com*|tty*) # (XXX -- com should die)
|
||||
ounit=${i#???}
|
||||
ounit=$(($ounit + 0))
|
||||
if [ $ounit -lt 10 ]; then
|
||||
unit=0$ounit
|
||||
rm -f com$ounit
|
||||
else
|
||||
unit=$ounit
|
||||
fi
|
||||
rm -f tty$unit dty$unit
|
||||
mknod tty$unit c 20 $(($ounit + $dialin ))
|
||||
mknod dty$unit c 20 $(($ounit + $dialout))
|
||||
chown uucp.wheel tty$unit dty$unit
|
||||
;;
|
||||
|
||||
pty*)
|
||||
class=${i#pty}
|
||||
case $class in
|
||||
@ -249,6 +268,17 @@ pty*)
|
||||
chmod 666 tty$name? pty$name?
|
||||
;;
|
||||
|
||||
bpf*|tun*|lpt*)
|
||||
case $i in
|
||||
bpf*) name=bpf; unit=${i#bpf}; chr=18;;
|
||||
tun*) name=tun; unit=${i#tun}; chr=19;;
|
||||
lpt*) name=lpt; unit=${i#lpt}; chr=21;;
|
||||
esac
|
||||
rm -f $name$unit
|
||||
mknod $name$unit c $chr $unit
|
||||
chown root.wheel $name$unit
|
||||
;;
|
||||
|
||||
local)
|
||||
umask 0
|
||||
sh $0.local all
|
||||
|
Loading…
Reference in New Issue
Block a user