X-Git-Url: https://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/877b5822a9beb2f0baa286687fde8264adb05060..refs/heads/master:/blog/data/2011-01-23-hardware-info.txt diff --git a/blog/data/2011-01-23-hardware-info.txt b/blog/data/2011-01-23-hardware-info.txt index a649bf1edf..0872e6affe 100644 --- a/blog/data/2011-01-23-hardware-info.txt +++ b/blog/data/2011-01-23-hardware-info.txt @@ -1,6 +1,6 @@ Title: Which module is loaded for a given PCI and USB device? Tags: english, debian -Date: 2011-01-23 00:15 +Date: 2011-01-23 00:20

In the discover-data @@ -41,7 +41,7 @@ if [ -d /sys/bus/pci/devices/ ] ; then module=`cd $address/driver/module ; pwd -P | xargs basename` if grep -q "^$module " /proc/modules ; then address=$(echo $address |sed s/0000://) - id=`lspci -n -s $address | tail -n 1 | awk '{print $3}'` + id=`lspci -n -s $address | tail -n 1 | awk '{print $3}'` echo "$id $module" fi fi