mirror of https://github.com/kholia/OSX-KVM.git
16 lines
300 B
Bash
Executable File
16 lines
300 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# mafferri (https://bbs.archlinux.org)
|
|
|
|
BASE="/sys/kernel/iommu_groups"
|
|
|
|
for i in $(find $BASE -maxdepth 1 -mindepth 1 -type d); do
|
|
GROUP=$(basename $i)
|
|
echo "### Group $GROUP ###"
|
|
for j in $(find $i/devices -type l); do
|
|
DEV=$(basename $j)
|
|
echo -n " "
|
|
lspci -s $DEV
|
|
done
|
|
done
|