Make ugen devices. None are created by default.

This commit is contained in:
augustss 1998-12-09 01:11:26 +00:00
parent 1fdafa2f13
commit d31303074e

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.76 1998/12/07 18:46:27 sommerfe Exp $
# $NetBSD: MAKEDEV,v 1.77 1998/12/09 01:11:26 augustss Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -75,6 +75,7 @@
# usb* Bus control devices used by usbd for attach/detach
# uhid* Generic HID devices
# ulpt* Printer devices
# ugen* Generic device
#
# Call units:
#
@ -183,6 +184,20 @@ ulpt*)
chmod 600 $ulpt
;;
ugen*)
unit=${i#ugen}
ugen=ugen$unit
major=64
for j in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15
do
ugenj=$ugen.$j
rm -f $ugenj
mknod $ugenj c $major $(($unit * 16 + $j))
chown root.wheel $ugenj
chmod 600 $ugenj
done
;;
ttyv*)
chr=12; unit=${i#ttyv}
rm -f ttyv$unit