Skip to content

Instantly share code, notes, and snippets.

PRIVATE again hello
@alex14fr
alex14fr / identify.sh
Last active November 16, 2019 06:30
list pci devices
wget https://pci-ids.ucw.cz/v2.2/pci.ids
lspci|awk '{print $4;}' > machine.idpci
awk -e 'OFS=""; /^[0-9]/ {x=$1;print} /^\t/ {print x,$0}' < pci.ids | tr '\t' ':' > pci.ids.2
while read x; do grep $x pci.ids.2; done < machine.idpci > machine.names
lspci -k |cut -d' ' -f4,5 > machine.drivers