diff options
Diffstat (limited to 'etc/etc.mac68k')
-rw-r--r-- | etc/etc.mac68k/MAKEDEV | 12 |
1 files changed, 10 insertions, 2 deletions
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" |