From 626d7e433a8619f0c9ead78af8604b4de4516ec6 Mon Sep 17 00:00:00 2001 From: hl Date: Thu, 21 Nov 2024 15:19:37 +0800 Subject: [PATCH] update --- iommu-group.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/iommu-group.sh b/iommu-group.sh index 3c2b72d..8996d58 100755 --- a/iommu-group.sh +++ b/iommu-group.sh @@ -1,7 +1,8 @@ #!/bin/bash shopt -s nullglob for d in /sys/kernel/iommu_groups/*/devices/*; do - n=${d#*/iommu_groups/*}; n=${n%%/*} - printf 'IOMMU Group %s ' "$n" - lspci -nns "${d##*/}" + n=${d#*/iommu_groups/*}; + n=${n%%/*}; + printf 'IOMMU Group %s ' "$n"; + lspci -nns "${d##*/}"; done;