|
@ -3,9 +3,9 @@ |
|
|
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. |
|
|
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. |
|
|
# generated from: |
|
|
# generated from: |
|
|
# |
|
|
# |
|
|
# OpenBSD: etc.pegasos/MAKEDEV.md,v 1.1 2003/10/31 03:56:54 drahn Exp |
|
|
|
|
|
# OpenBSD: MAKEDEV.mi,v 1.63 2003/10/15 02:01:04 todd Exp |
|
|
|
|
|
# OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp |
|
|
|
|
|
|
|
|
# OpenBSD: etc.pegasos/MAKEDEV.md,v 1.2 2004/01/12 23:32:24 todd Exp |
|
|
|
|
|
# OpenBSD: MAKEDEV.mi,v 1.65 2004/01/12 22:31:34 todd Exp |
|
|
|
|
|
# OpenBSD: MAKEDEV.sub,v 1.9 2004/01/12 22:18:24 todd Exp |
|
|
# |
|
|
# |
|
|
# |
|
|
# |
|
|
# Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org> |
|
|
# Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org> |
|
@ -58,7 +58,7 @@ |
|
|
# ugen* Generic device |
|
|
# ugen* Generic device |
|
|
# ulpt* Printer devices |
|
|
# ulpt* Printer devices |
|
|
# urio* Diamond Multimedia Rio 500 |
|
|
# urio* Diamond Multimedia Rio 500 |
|
|
# utty* Serial ports |
|
|
|
|
|
|
|
|
# ttyU* Serial ports |
|
|
# uscanner* Scanners |
|
|
# uscanner* Scanners |
|
|
# Special purpose devices: |
|
|
# Special purpose devices: |
|
|
# audio* audio device |
|
|
# audio* audio device |
|
@ -98,6 +98,14 @@ hex() |
|
|
esac |
|
|
esac |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
alph2d() |
|
|
|
|
|
{ |
|
|
|
|
|
local t="$1" |
|
|
|
|
|
local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" |
|
|
|
|
|
local sub=${p%${t}*} |
|
|
|
|
|
echo ${#sub} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
h2d() |
|
|
h2d() |
|
|
{ |
|
|
{ |
|
|
local s="$1" |
|
|
local s="$1" |
|
@ -249,7 +257,7 @@ pci) |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
usbs) |
|
|
usbs) |
|
|
R utty0 utty1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3 |
|
|
|
|
|
|
|
|
R ttyU0 ttyU1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3 |
|
|
R uscanner0 urio0 usb0 usb1 |
|
|
R uscanner0 urio0 usb0 usb1 |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
@ -322,8 +330,10 @@ uscanner*) |
|
|
M uscanner$U c 74 $U 660 |
|
|
M uscanner$U c 74 $U 660 |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
utty*) |
|
|
|
|
|
M utty$U c 66 $U 660 |
|
|
|
|
|
|
|
|
ttyU[0-9a-zA-Z]) |
|
|
|
|
|
U=${i#ttyU*} |
|
|
|
|
|
o=$(alph2d $U) |
|
|
|
|
|
M ttyU$U c 66 $o 660 dialer uucp |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
urio*) |
|
|
urio*) |
|
|