Revision: 6216
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 8, 2008 21:12 by Juanje
Initial Code
# search modules for pci devices get_pci_modules () { while read IGNORE ID IGNORE do VENDOR=`echo $ID | cut -b1-4` DEVICE=`echo $ID | cut -b5-8` DEVENTRY=`echo 0x0000${VENDOR} 0x0000${DEVICE}` cat /lib/modules/`uname -r`/*.pcimap | grep "$DEVENTRY" | cut -d ' ' -f1 done } for MODULE in `get_pci_modules < /proc/bus/pci/devices | sort -u` ; do echo $MODULE done
Initial URL
Initial Description
Initial Title
Get the linux modules for our pci devices
Initial Tags
linux
Initial Language
Bash