summaryrefslogtreecommitdiff
path: root/etc/etc.mac68k
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2004-01-12 22:31:36 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2004-01-12 22:31:36 +0000
commit0051ac0eb47eb0bf54ee8ea9ed24b63021766e29 (patch)
tree56d0b76b1334dea8de8633005b4f3764638a748b /etc/etc.mac68k
parentb556a24e566cf6eba89e08a69e24e2739d6de862 (diff)
+ alph2d() (thanks dr!), allow ttyU's a-zA-Z to be created
Diffstat (limited to 'etc/etc.mac68k')
-rw-r--r--etc/etc.mac68k/MAKEDEV12
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"