diff --git a/roles/yavdr-common/files/list_pci_ids.sh b/roles/yavdr-common/files/list_pci_ids.sh new file mode 100644 index 0000000..a43e0c3 --- /dev/null +++ b/roles/yavdr-common/files/list_pci_ids.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# return all vendor:device ids +# typical device path: +# /sys/devices/pci0000\:00/0000\:00\:1f.2/ + +for device in /sys/devices/pci*/*:*:*/; do + echo "$(cat "$device"/vendor):$(cat "$device"/device)" | sed 's/0x//g' +done +