From b85872dfc933ff3bd2e95303d8327c357c8b9ca6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 11 Jul 2023 15:28:11 +0100 Subject: Move to sx instead of startx --- scripts/iommu.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/iommu.sh (limited to 'scripts/iommu.sh') 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; -- cgit v1.2.1