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