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/etc.hp300 | |
parent | b556a24e566cf6eba89e08a69e24e2739d6de862 (diff) |
+ alph2d() (thanks dr!), allow ttyU's a-zA-Z to be created
Diffstat (limited to 'etc/etc.hp300')
-rw-r--r-- | etc/etc.hp300/MAKEDEV | 12 |
1 files changed, 10 insertions, 2 deletions
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" |