aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>1999-11-24 21:05:59 +0000
committerNick Hibma <n_hibma@FreeBSD.org>1999-11-24 21:05:59 +0000
commitefb9fba1e19a852d71e8ffafa5782400747dd960 (patch)
treef326b4acb047a9aff66ccdbc897e212dc2558875 /etc
parent9b962c56a47dfb8086850aab1336f72fc38684a1 (diff)
downloadsrc-efb9fba1e19a852d71e8ffafa5782400747dd960.tar.gz
src-efb9fba1e19a852d71e8ffafa5782400747dd960.zip
Make the devices for the endpoints 0-15, not only for 0. This creates
ugen0 and ugen0.1 - ugen0.15, not only ugen0 (control endpoint).
Notes
Notes: svn path=/head/; revision=53679
Diffstat (limited to 'etc')
-rw-r--r--etc/MAKEDEV8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV
index 2174e23a03b0..888731dd143a 100644
--- a/etc/MAKEDEV
+++ b/etc/MAKEDEV
@@ -861,9 +861,11 @@ ugen*)
if [ -z "${unit}" ]; then
echo $i - Invalid unit number
fi
- if [ -z "${endpoint}" ]; then
- minor=`expr $unit \* 16`
- mknod ugen$unit c 114 $minor
+ if [ -z "${endpoint}" ]; then # ugen0 & ugen0.1 - ugen0.15
+ eval `echo ${unit} | awk ' { u=0+$1 } END {
+ printf("mknod ugen%d c 114 %d;", u, u*16+0);
+ for (i = 1; i < 16; i++)
+ printf("mknod ugen%d.%d c 114 %d;", u, i, u*16+i); }'`
else
minor=`expr $unit \* 16 + $endpoint`
mknod ugen$unit.$endpoint c 114 $minor