Browse Source

Create USB devices.

OPENBSD_2_6
fgsch 25 years ago
parent
commit
00e2f9246b
1 changed files with 50 additions and 1 deletions
  1. +50
    -1
      src/etc/etc.i386/MAKEDEV

+ 50
- 1
src/etc/etc.i386/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: MAKEDEV,v 1.71 1999/07/30 18:49:36 deraadt Exp $
# $OpenBSD: MAKEDEV,v 1.72 1999/08/13 05:39:24 fgsch Exp $
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@ -30,6 +30,7 @@
# floppy devices to be put on install floppies
# std standard devices
# local configuration specific devices
# usbs make USB devices
#
# Tapes:
# wt* QIC-interfaced (e.g. not SCSI) 3M cartridge tape
@ -67,6 +68,12 @@
# lpt* stock lp
# lpa* interruptless lp
#
# USB devices:
# usb* Bus control devices used by usbd for attach/detach
# uhid* Generic HID devices
# ulpt* Printer devices
# ugen* Generic device
#
# Call units:
#
# Special purpose devices:
@ -123,6 +130,7 @@ all)
sh MAKEDEV fd1 fd1B fd1C fd1D fd1E fd1F fd1G fd1H
sh MAKEDEV xfs0 music
sh MAKEDEV rmidi0 rmidi1 rmidi2 rmidi3 rmidi4 rmidi5 rmidi6 rmidi7
sh MAKEDEV usbs
# MISSING:
# sh MAKEDEV mouse-?
;;
@ -138,6 +146,12 @@ ramdisk)
sh MAKEDEV sd0 sd1 sd2 sd3 st0 st1 cd0 cd1 mcd0
;;
usbs)
sh MAKEDEV usb0 usb1
sh MAKEDEV uhid0 uhid1 uhid2 uhid3
# sh MAKEDEV ulpt0 ulpt1
;;
std)
rm -f console drum mem kmem xf86 null zero io tty klog stdin stdout stderr ksyms
mknod console c 0 0
@ -156,6 +170,41 @@ std)
mknod ksyms c 50 0 ; chmod 640 ksyms ; chown root.kmem ksyms
;;
usb*)
unit=`expr $i : 'usb\(.\).*'`
rm -f usb$unit
mknod usb$unit c 61 $unit
chown root.wheel usb$unit
chmod 600 usb$unit
;;
uhid*)
unit=`expr $i : 'uhid\(.\).*'`
rm -f uhid$unit
mknod uhid$unit c 62 $unit
chown root.wheel uhid$unit
chmod 666 uhid$unit
;;
#ulpt*)
# unit=`expr $i : 'ulpt\(.\).*'`
# rm -f ulpt$unit
# mknod ulpt$unit c ?? $unit
# chown root.wheel ulpt$unit
# chmod 600 ulpt$unit
# ;;
ugen*)
unit=`expr $i : 'ugen\(.\).*'`
for j in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15
do
rm -f ugen$unit.$j
mknod ugen$unit.$j c 63 `expr $unit '*' 16 + $j`
chown root.wheel ugen$unit.$j
chmod 600 ugen$unit.$j
done
;;
ttyC*)
unit=`expr $i : 'ttyC\(.*\)'`
rm -f ttyC$unit


Loading…
Cancel
Save