diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-11-24 21:05:59 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-11-24 21:05:59 +0000 |
commit | c058bf3280eb0731352307392df40421a2f6b2b3 (patch) | |
tree | 913b3eb0186445ebbe35d67a4e94e0c46bb20d0e | |
parent | 2431275ac48499acc89eff888d82d8352f3e175b (diff) | |
download | FreeBSD-src-c058bf3280eb0731352307392df40421a2f6b2b3.zip FreeBSD-src-c058bf3280eb0731352307392df40421a2f6b2b3.tar.gz |
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).
-rw-r--r-- | etc/MAKEDEV | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 2174e23..888731d 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 |