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:
parent
4fa210063d
commit
5416edb18d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user