Skip to content

Commit 94fb07f

Browse files
committed
Renamed passthroughtest to lsiommu, and removed cheatsheet
1 parent a3fd2ce commit 94fb07f

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Diff for: README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Scriptlets
22
### backup ###
3-
Pretty self explanatory, it backs up your whole system using rsync, and makes a tar after.
4-
### cheatsheet ###
5-
Just things that I usually forget, and want to remember.
3+
Pretty self explanatory, it backs up using rsync.
64
### cpanlicense ###
75
Checks status of a cpanel license
86
### dmenu-launch ###
@@ -15,12 +13,12 @@ Actually doesn't even use feh, but it makes image viewing nicer than before.
1513
Either updates all git repo's in your drive, or only the specified directory.
1614
### movemouserelativewin ###
1715
Moves the mouse to the center of focused window, good for tiling wm's.
18-
### passthroughtest ###
19-
Lists PCI devices that can be passed through using VFIO.
16+
### lsiommu ###
17+
Lists PCI devices, and shows their IOMMU groupings.
2018
### sandbox ###
2119
Runs commands as user with no permissions, and a home in /tmp/
2220
### screendr ###
23-
Uses menu to show an interactive list of detached screen sessions.
21+
Uses menu to show an interactive list of screen sessions.
2422
### screenify ###
2523
Either connects to a screen running a command, or creates a new one.
2624
### smartde ###

Diff for: lsiommu

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
shopt -s nullglob
3+
for d in /sys/kernel/iommu_groups/*/devices/*; do
4+
n=${d#*/iommu_groups/*}; n=${n%%/*}
5+
printf 'IOMMU Group %s ' "$n"
6+
lspci -nns "${d##*/}"
7+
done;

0 commit comments

Comments
 (0)