diff options
author | davidovski <david@davidovski.xyz> | 2023-07-11 15:28:11 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-07-11 15:28:11 +0100 |
commit | b85872dfc933ff3bd2e95303d8327c357c8b9ca6 (patch) | |
tree | 377f7f3425091ea5edeca9286bb37e94c935693b /scripts/iommu.sh | |
parent | afda5cf53f9fc181514f6b69fbf5fb5cbb80ef13 (diff) |
Move to sx instead of startx
Diffstat (limited to 'scripts/iommu.sh')
-rwxr-xr-x | scripts/iommu.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/iommu.sh b/scripts/iommu.sh new file mode 100755 index 0000000..d971665 --- /dev/null +++ b/scripts/iommu.sh @@ -0,0 +1,8 @@ +#!/bin/bash +shopt -s nullglob +for g in $(find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V); do + echo "IOMMU Group ${g##*/}:" + for d in $g/devices/*; do + echo -e "\t$(lspci $@ -nns ${d##*/})" + done; +done; |