]> pere.pagekite.me Git - homepage.git/blobdiff - blog/data/2011-01-23-hardware-info.txt
Typo.
[homepage.git] / blog / data / 2011-01-23-hardware-info.txt
index a649bf1edf1cf48274d5dff11233bfc5a6eff23b..0872e6affed6417e063bdeac91ea4d8a3277145c 100644 (file)
@@ -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
 
 <p>In the
 <a href="http://packages.qa.debian.org/discover-data">discover-data</a>
@@ -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