Browse Source

add utty, serial port for USB devices.

OPENBSD_2_8
fgsch 24 years ago
parent
commit
ee503aee5f
1 changed files with 15 additions and 6 deletions
  1. +15
    -6
      src/etc/etc.i386/MAKEDEV

+ 15
- 6
src/etc/etc.i386/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: MAKEDEV,v 1.79 2000/04/15 17:50:45 jakob Exp $
# $OpenBSD: MAKEDEV,v 1.80 2000/07/06 22:01:29 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.
@ -74,6 +74,7 @@
# ulpt* Printer devices
# urio* Diamond Multimedia Rio 500
# ugen* Generic device
# utty* Serial ports
#
# Call units:
#
@ -215,6 +216,7 @@ usbs)
sh $this uhid0 uhid1 uhid2 uhid3
sh $this ulpt0 ulpt1
sh $this urio0
sh $this utty0 utty1
;;
std)
@ -239,28 +241,28 @@ usb*)
rm -f usb$unit
mknod usb$unit c 61 $unit
chown root.wheel usb$unit
chmod 600 usb$unit
chmod 660 usb$unit
;;
uhid*)
rm -f uhid$unit
mknod uhid$unit c 62 $unit
chown root.wheel uhid$unit
chmod 666 uhid$unit
chmod 660 uhid$unit
;;
ulpt*)
rm -f ulpt$unit
mknod ulpt$unit c 64 $unit
chown root.wheel ulpt$unit
chmod 600 ulpt$unit
chmod 660 ulpt$unit
;;
urio*)
rm -f urio$unit
mknod urio$unit c 65 $unit
chown root.wheel urio$unit
chmod 666 urio$unit
chmod 660 urio$unit
;;
ugen*)
@ -269,10 +271,17 @@ ugen*)
rm -f ugen$unit.$j
mknod ugen$unit.$j c 63 $(( $unit * 16 + $j ))
chown root.wheel ugen$unit.$j
chmod 600 ugen$unit.$j
chmod 660 ugen$unit.$j
done
;;
utty*)
rm -f utty$unix
mknod utty$unit c 66 $unit
chown root.wheel utty$unit
chmod 660 utty$unit
;;
ttyC*)
rm -f ttyC$unit
mknod ttyC$unit c 12 $unit


Loading…
Cancel
Save