Add ugen device.

This commit is contained in:
augustss 1998-12-09 01:47:15 +00:00
parent d31303074e
commit af27a191a5
2 changed files with 32 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh -
# $NetBSD: MAKEDEV,v 1.33 1998/11/29 07:03:26 thorpej Exp $
# $NetBSD: MAKEDEV,v 1.34 1998/12/09 01:47:15 augustss Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -69,6 +69,7 @@
# usb* Bus control devices used by usbd for attach/detach
# uhid* Generic HID devices
# ulpt* Printer devices
# ugen* Generic device
#
# Special purpose devices:
# audio audio device
@ -164,6 +165,20 @@ ulpt*)
chmod 600 $ulpt
;;
ugen*)
unit=${i#ugen}
ugen=ugen$unit
major=48
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
;;
fd)
rm -f fd/*
mkdir fd > /dev/null 2>&1

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.27 1998/11/13 04:49:01 oster Exp $
# $NetBSD: MAKEDEV,v 1.28 1998/12/09 01:47:15 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:
#
@ -483,6 +484,20 @@ ulpt*)
chmod 600 $ulpt
;;
ugen*)
unit=${i#ugen}
ugen=ugen$unit
major=72
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
;;
random)
rm -f random urandom