mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 07:11:05 +01:00
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
9b962c56a4
commit
efb9fba1e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53679
@ -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