diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2004-01-12 23:34:55 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2004-01-12 23:34:55 +0000 |
commit | f49a410f277b1db9f52b54c748037f8609817b07 (patch) | |
tree | 53c4f7b106c41e2249970fd8adf4c84c62f50f6d /etc | |
parent | 4d7446285eea81c96149043ae59def00c10c46b5 (diff) |
sync
Diffstat (limited to 'etc')
-rw-r--r-- | etc/etc.pegasos/MAKEDEV | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/etc/etc.pegasos/MAKEDEV b/etc/etc.pegasos/MAKEDEV index 5b93b88310c..45cb3e60396 100644 --- a/etc/etc.pegasos/MAKEDEV +++ b/etc/etc.pegasos/MAKEDEV @@ -3,9 +3,9 @@ # THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. # 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> @@ -58,7 +58,7 @@ # ugen* Generic device # ulpt* Printer devices # urio* Diamond Multimedia Rio 500 -# utty* Serial ports +# ttyU* Serial ports # uscanner* Scanners # Special purpose devices: # audio* audio device @@ -98,6 +98,14 @@ hex() esac } +alph2d() +{ + local t="$1" + local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + local sub=${p%${t}*} + echo ${#sub} +} + h2d() { local s="$1" @@ -249,7 +257,7 @@ pci) ;; 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 ;; @@ -322,8 +330,10 @@ uscanner*) 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*) |