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).
This commit is contained in:
Nick Hibma 1999-11-24 21:05:59 +00:00
parent 9b962c56a4
commit efb9fba1e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53679

View File

@ -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