summaryrefslogtreecommitdiff
path: root/etc/etc.macppc/MAKEDEV
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.macppc/MAKEDEV
parentb556a24e566cf6eba89e08a69e24e2739d6de862 (diff)
+ alph2d() (thanks dr!), allow ttyU's a-zA-Z to be created
Diffstat (limited to 'etc/etc.macppc/MAKEDEV')
-rw-r--r--etc/etc.macppc/MAKEDEV24
1 files changed, 17 insertions, 7 deletions
diff --git a/etc/etc.macppc/MAKEDEV b/etc/etc.macppc/MAKEDEV
index 2b3c43e290c..4f422ab7b2e 100644
--- a/etc/etc.macppc/MAKEDEV
+++ b/etc/etc.macppc/MAKEDEV
@@ -3,9 +3,9 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from:
#
-# OpenBSD: etc.macppc/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: etc.macppc/MAKEDEV.md,v 1.12 2004/01/12 22:18:24 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>
@@ -58,7 +58,7 @@
# ugen* Generic device
# ulpt* Printer devices
# urio* Diamond Multimedia Rio 500
-# utty* Serial ports
+# ttyU* Serial ports
# uscanner* Scanners
# Special purpose devices:
# audio* audio device
@@ -98,6 +98,14 @@ hex()
esac
}
+alph2d()
+{
+ local t="$1"
+ local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ local sub=${p%${t}*}
+ echo ${#sub}
+}
+
h2d()
{
local s="$1"
@@ -249,7 +257,7 @@ pci)
;;
usbs)
- R utty0 utty1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3
+ R ttyU0 ttyU1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3
R uscanner0 urio0 usb0 usb1
;;
@@ -322,8 +330,10 @@ uscanner*)
M uscanner$U c 74 $U 660
;;
-utty*)
- M utty$U c 66 $U 660
+ttyU[0-9a-zA-Z])
+ U=${i#ttyU*}
+ o=$(alph2d $U)
+ M ttyU$U c 66 $o 660 dialer uucp
;;
urio*)