Guest User

Untitled

a guest
Nov 15th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. shopt -s nullglob
  4.  
  5. for d in /sys/kernel/iommu_groups/*/devices/*; do
  6. n=${d#*/iommu_groups/*}; n=${n%%/*}
  7. printf 'IOMMU Group %s ' "$n"
  8. lspci -nns "${d##*/}"
  9. done;
Add Comment
Please, Sign In to add comment