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