|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/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 $ |
|
|
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $ |
|
|
# |
|
|
# |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
@ -74,6 +74,7 @@ |
|
|
# ulpt* Printer devices |
|
|
# ulpt* Printer devices |
|
|
# urio* Diamond Multimedia Rio 500 |
|
|
# urio* Diamond Multimedia Rio 500 |
|
|
# ugen* Generic device |
|
|
# ugen* Generic device |
|
|
|
|
|
# utty* Serial ports |
|
|
# |
|
|
# |
|
|
# Call units: |
|
|
# Call units: |
|
|
# |
|
|
# |
|
@ -215,6 +216,7 @@ usbs) |
|
|
sh $this uhid0 uhid1 uhid2 uhid3 |
|
|
sh $this uhid0 uhid1 uhid2 uhid3 |
|
|
sh $this ulpt0 ulpt1 |
|
|
sh $this ulpt0 ulpt1 |
|
|
sh $this urio0 |
|
|
sh $this urio0 |
|
|
|
|
|
sh $this utty0 utty1 |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
std) |
|
|
std) |
|
@ -239,28 +241,28 @@ usb*) |
|
|
rm -f usb$unit |
|
|
rm -f usb$unit |
|
|
mknod usb$unit c 61 $unit |
|
|
mknod usb$unit c 61 $unit |
|
|
chown root.wheel usb$unit |
|
|
chown root.wheel usb$unit |
|
|
chmod 600 usb$unit |
|
|
|
|
|
|
|
|
chmod 660 usb$unit |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
uhid*) |
|
|
uhid*) |
|
|
rm -f uhid$unit |
|
|
rm -f uhid$unit |
|
|
mknod uhid$unit c 62 $unit |
|
|
mknod uhid$unit c 62 $unit |
|
|
chown root.wheel uhid$unit |
|
|
chown root.wheel uhid$unit |
|
|
chmod 666 uhid$unit |
|
|
|
|
|
|
|
|
chmod 660 uhid$unit |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
ulpt*) |
|
|
ulpt*) |
|
|
rm -f ulpt$unit |
|
|
rm -f ulpt$unit |
|
|
mknod ulpt$unit c 64 $unit |
|
|
mknod ulpt$unit c 64 $unit |
|
|
chown root.wheel ulpt$unit |
|
|
chown root.wheel ulpt$unit |
|
|
chmod 600 ulpt$unit |
|
|
|
|
|
|
|
|
chmod 660 ulpt$unit |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
urio*) |
|
|
urio*) |
|
|
rm -f urio$unit |
|
|
rm -f urio$unit |
|
|
mknod urio$unit c 65 $unit |
|
|
mknod urio$unit c 65 $unit |
|
|
chown root.wheel urio$unit |
|
|
chown root.wheel urio$unit |
|
|
chmod 666 urio$unit |
|
|
|
|
|
|
|
|
chmod 660 urio$unit |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
ugen*) |
|
|
ugen*) |
|
@ -269,10 +271,17 @@ ugen*) |
|
|
rm -f ugen$unit.$j |
|
|
rm -f ugen$unit.$j |
|
|
mknod ugen$unit.$j c 63 $(( $unit * 16 + $j )) |
|
|
mknod ugen$unit.$j c 63 $(( $unit * 16 + $j )) |
|
|
chown root.wheel ugen$unit.$j |
|
|
chown root.wheel ugen$unit.$j |
|
|
chmod 600 ugen$unit.$j |
|
|
|
|
|
|
|
|
chmod 660 ugen$unit.$j |
|
|
done |
|
|
done |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
utty*) |
|
|
|
|
|
rm -f utty$unix |
|
|
|
|
|
mknod utty$unit c 66 $unit |
|
|
|
|
|
chown root.wheel utty$unit |
|
|
|
|
|
chmod 660 utty$unit |
|
|
|
|
|
;; |
|
|
|
|
|
|
|
|
ttyC*) |
|
|
ttyC*) |
|
|
rm -f ttyC$unit |
|
|
rm -f ttyC$unit |
|
|
mknod ttyC$unit c 12 $unit |
|
|
mknod ttyC$unit c 12 $unit |
|
|