diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2004-01-12 22:31:36 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2004-01-12 22:31:36 +0000 |
commit | 0051ac0eb47eb0bf54ee8ea9ed24b63021766e29 (patch) | |
tree | 56d0b76b1334dea8de8633005b4f3764638a748b /etc | |
parent | b556a24e566cf6eba89e08a69e24e2739d6de862 (diff) |
+ alph2d() (thanks dr!), allow ttyU's a-zA-Z to be created
Diffstat (limited to 'etc')
-rw-r--r-- | etc/MAKEDEV.mi | 14 | ||||
-rw-r--r-- | etc/Makefile | 3 | ||||
-rw-r--r-- | etc/etc.alpha/MAKEDEV | 24 | ||||
-rw-r--r-- | etc/etc.hp300/MAKEDEV | 12 | ||||
-rw-r--r-- | etc/etc.hppa/MAKEDEV | 12 | ||||
-rw-r--r-- | etc/etc.i386/MAKEDEV | 24 | ||||
-rw-r--r-- | etc/etc.mac68k/MAKEDEV | 12 | ||||
-rw-r--r-- | etc/etc.macppc/MAKEDEV | 24 | ||||
-rw-r--r-- | etc/etc.mvme68k/MAKEDEV | 12 | ||||
-rw-r--r-- | etc/etc.mvme88k/MAKEDEV | 12 | ||||
-rw-r--r-- | etc/etc.sparc/MAKEDEV | 12 | ||||
-rw-r--r-- | etc/etc.sparc64/MAKEDEV | 24 |
12 files changed, 141 insertions, 44 deletions
diff --git a/etc/MAKEDEV.mi b/etc/MAKEDEV.mi index 55bf18c1f2d..67abb856fb2 100644 --- a/etc/MAKEDEV.mi +++ b/etc/MAKEDEV.mi @@ -1,6 +1,6 @@ include(MAKEDEV.sub)dnl dnl -vers(a, {-$OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 todd Exp $-})dnl +vers(a, {-$OpenBSD: MAKEDEV.mi,v 1.65 2004/01/12 22:31:34 todd Exp $-})dnl dnl divert(1)dnl {-#-} @@ -447,7 +447,9 @@ _mcdev({-uhid-}, uhid*, {-uhid-}, {-major_uhid_c-}, 660)dnl __devitem(ulpt, ulpt*, Printer devices)dnl _mcdev({-ulpt-}, ulpt*, {-ulpt-}, {-major_ulpt_c-}, 660)dnl __devitem(ttyU, ttyU*, Serial ports)dnl -_mcdev({-ttyU-}, ttyU*, {-ttyU-}, {-major_ttyU_c-}, 660, dialer uucp)dnl +_mkdev({-ttyU-}, {-ttyU[0-9a-zA-Z]-}, {-U=${i#ttyU*} + o=$(alph2d $U) + M ttyU$U c major_ttyU_c $o 660 dialer uucp-})dnl __devitem(urio, urio*, Diamond Multimedia Rio 500)dnl _mcdev({-urio-}, urio*, {-urio-}, {-major_urio_c-}, 660)dnl __devitem(uscan, uscanner*, Scanners)dnl @@ -674,6 +676,14 @@ hex() esac } +alph2d() +{ + local t="$1" + local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + local sub=${p%${t}*} + echo ${#sub} +} + h2d() { local s="$1" diff --git a/etc/Makefile b/etc/Makefile index b88fb2153dd..da2344f3d53 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.189 2004/01/11 22:00:23 deraadt Exp $ +# $OpenBSD: Makefile,v 1.190 2004/01/12 22:31:34 todd Exp $ TZDIR= /usr/share/zoneinfo LOCALTIME= Canada/Mountain @@ -335,7 +335,6 @@ MAKEDEVARCHS+= macppc MAKEDEVARCHS+= mvme68k MAKEDEVARCHS+= mvme88k #MAKEDEVARCHS+= mvmeppc -MAKEDEVARCHS+= pegasos MAKEDEVARCHS+= sparc MAKEDEVARCHS+= sparc64 #MAKEDEVARCHS+= vax diff --git a/etc/etc.alpha/MAKEDEV b/etc/etc.alpha/MAKEDEV index f4e4af0a043..dca70383aff 100644 --- a/etc/etc.alpha/MAKEDEV +++ b/etc/etc.alpha/MAKEDEV @@ -3,9 +3,9 @@ # THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. # generated from: # -# OpenBSD: etc.alpha/MAKEDEV.md,v 1.16 2003/06/18 18:08:59 todd 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.alpha/MAKEDEV.md,v 1.17 2004/01/12 22:18:24 todd Exp +# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 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> @@ -60,7 +60,7 @@ # uhid* Generic HID devices # ulpt* Printer devices # ugen* Generic device -# utty* Serial ports +# ttyU* Serial ports # Special purpose devices: # ch* SCSI media changer # pf* Packet Filter @@ -102,6 +102,14 @@ hex() esac } +alph2d() +{ + local t="$1" + local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + local sub=${p%${t}*} + echo ${#sub} +} + h2d() { local s="$1" @@ -315,7 +323,7 @@ fd) ;; usbs) - R utty0 utty1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3 + R ttyU0 ttyU1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3 R usb0 usb1 ;; @@ -339,8 +347,10 @@ ch*) M ch$U c 14 $U 660 operator ;; -utty*) - M utty$U c 49 $U 660 +ttyU[0-9a-zA-Z]) + U=${i#ttyU*} + o=$(alph2d $U) + M ttyU$U c 49 $o 660 dialer uucp ;; ugen*) diff --git a/etc/etc.hp300/MAKEDEV b/etc/etc.hp300/MAKEDEV index 5148571f236..820b7f06bd0 100644 --- a/etc/etc.hp300/MAKEDEV +++ b/etc/etc.hp300/MAKEDEV @@ -4,8 +4,8 @@ # generated from: # # OpenBSD: etc.hp300/MAKEDEV.md,v 1.13 2003/06/18 18:08:59 todd 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: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 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> @@ -78,6 +78,14 @@ hex() esac } +alph2d() +{ + local t="$1" + local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + local sub=${p%${t}*} + echo ${#sub} +} + h2d() { local s="$1" diff --git a/etc/etc.hppa/MAKEDEV b/etc/etc.hppa/MAKEDEV index 61cf8122ed0..03f548a81f4 100644 --- a/etc/etc.hppa/MAKEDEV +++ b/etc/etc.hppa/MAKEDEV @@ -4,8 +4,8 @@ # generated from: # # OpenBSD: etc.hppa/MAKEDEV.md,v 1.16 2003/12/09 04:27:51 mickey 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: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 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> @@ -88,6 +88,14 @@ hex() esac } +alph2d() +{ + local t="$1" + local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + local sub=${p%${t}*} + echo ${#sub} +} + h2d() { local s="$1" diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV index 8e95b030e89..59efdfbdf14 100644 --- a/etc/etc.i386/MAKEDEV +++ b/etc/etc.i386/MAKEDEV @@ -3,9 +3,9 @@ # THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. # generated from: # -# OpenBSD: etc.i386/MAKEDEV.md,v 1.17 2003/06/18 18:08:59 todd 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.i386/MAKEDEV.md,v 1.18 2004/01/12 22:18:24 todd Exp +# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 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> @@ -65,7 +65,7 @@ # ugen* Generic device # ulpt* Printer devices # urio* Diamond Multimedia Rio 500 -# utty* Serial ports +# ttyU* Serial ports # uscanner* Scanners # Call units: # Special purpose devices: @@ -117,6 +117,14 @@ hex() esac } +alph2d() +{ + local t="$1" + local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + local sub=${p%${t}*} + echo ${#sub} +} + h2d() { local s="$1" @@ -257,7 +265,7 @@ mouse*) ;; 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 ;; @@ -392,8 +400,10 @@ uscanner*) M uscanner$U c 77 $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*) diff --git a/etc/etc.mac68k/MAKEDEV b/etc/etc.mac68k/MAKEDEV index 91acf47ba71..f99970c41c5 100644 --- a/etc/etc.mac68k/MAKEDEV +++ b/etc/etc.mac68k/MAKEDEV @@ -4,8 +4,8 @@ # generated from: # # OpenBSD: etc.mac68k/MAKEDEV.md,v 1.11 2003/06/18 18:08:59 todd 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: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 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> @@ -77,6 +77,14 @@ hex() esac } +alph2d() +{ + local t="$1" + local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + local sub=${p%${t}*} + echo ${#sub} +} + h2d() { local s="$1" diff --git a/etc/etc.macppc/MAKEDEV b/etc/etc.macppc/MAKEDEV index 2b3c43e290c..4f422ab7b2e 100644 --- a/etc/etc.macppc/MAKEDEV +++ b/etc/etc.macppc/MAKEDEV @@ -3,9 +3,9 @@ # THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. # generated from: # -# OpenBSD: etc.macppc/MAKEDEV.md,v 1.11 2003/06/18 18:08:59 todd 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.macppc/MAKEDEV.md,v 1.12 2004/01/12 22:18:24 todd Exp +# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 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*) diff --git a/etc/etc.mvme68k/MAKEDEV b/etc/etc.mvme68k/MAKEDEV index 12b67dfb20d..37fdd9d38ee 100644 --- a/etc/etc.mvme68k/MAKEDEV +++ b/etc/etc.mvme68k/MAKEDEV @@ -4,8 +4,8 @@ # generated from: # # OpenBSD: etc.mvme68k/MAKEDEV.md,v 1.9 2003/09/26 06:58:02 miod 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: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 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> @@ -82,6 +82,14 @@ hex() esac } +alph2d() +{ + local t="$1" + local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + local sub=${p%${t}*} + echo ${#sub} +} + h2d() { local s="$1" diff --git a/etc/etc.mvme88k/MAKEDEV b/etc/etc.mvme88k/MAKEDEV index a3b5519b5e7..0691afc0f77 100644 --- a/etc/etc.mvme88k/MAKEDEV +++ b/etc/etc.mvme88k/MAKEDEV @@ -4,8 +4,8 @@ # generated from: # # OpenBSD: etc.mvme88k/MAKEDEV.md,v 1.10 2004/01/05 20:11:56 miod 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: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 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> @@ -78,6 +78,14 @@ hex() esac } +alph2d() +{ + local t="$1" + local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + local sub=${p%${t}*} + echo ${#sub} +} + h2d() { local s="$1" diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV index d1fba5d189f..161a56dedcf 100644 --- a/etc/etc.sparc/MAKEDEV +++ b/etc/etc.sparc/MAKEDEV @@ -4,8 +4,8 @@ # generated from: # # OpenBSD: etc.sparc/MAKEDEV.md,v 1.19 2003/06/18 18:08:59 todd 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: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 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> @@ -93,6 +93,14 @@ hex() esac } +alph2d() +{ + local t="$1" + local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + local sub=${p%${t}*} + echo ${#sub} +} + h2d() { local s="$1" diff --git a/etc/etc.sparc64/MAKEDEV b/etc/etc.sparc64/MAKEDEV index 19688ae28f1..ee439192acb 100644 --- a/etc/etc.sparc64/MAKEDEV +++ b/etc/etc.sparc64/MAKEDEV @@ -3,9 +3,9 @@ # THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. # generated from: # -# OpenBSD: etc.sparc64/MAKEDEV.md,v 1.27 2003/06/18 18:08:59 todd 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.sparc64/MAKEDEV.md,v 1.28 2004/01/12 22:18:24 todd Exp +# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 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> @@ -66,7 +66,7 @@ # ugen* Generic device # ulpt* Printer devices # urio* Diamond Multimedia Rio 500 -# utty* Serial ports +# ttyU* Serial ports # uscanner* Scanners # Special purpose devices: # usbs make USB devices @@ -109,6 +109,14 @@ hex() esac } +alph2d() +{ + local t="$1" + local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + local sub=${p%${t}*} + echo ${#sub} +} + h2d() { local s="$1" @@ -365,7 +373,7 @@ ses*) ;; 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 ;; @@ -373,8 +381,10 @@ uscanner*) M uscanner$U c 96 $U 660 ;; -utty*) - M utty$U c 95 $U 660 +ttyU[0-9a-zA-Z]) + U=${i#ttyU*} + o=$(alph2d $U) + M ttyU$U c 95 $o 660 dialer uucp ;; urio*) |