SVN: geninitrd/trunk/mod-sata.sh

shadzik shadzik at pld-linux.org
Wed Oct 20 22:46:48 CEST 2010


Author: shadzik
Date: Wed Oct 20 22:46:48 2010
New Revision: 11864

Modified:
   geninitrd/trunk/mod-sata.sh
Log:
- lspci -p


Modified: geninitrd/trunk/mod-sata.sh
==============================================================================
--- geninitrd/trunk/mod-sata.sh	(original)
+++ geninitrd/trunk/mod-sata.sh	Wed Oct 20 22:46:48 2010
@@ -18,7 +18,7 @@
 	# 0100 - SCSI
 	local module
 	local vendordev
-	vendordev=$(lspci -n |awk '/0106/{ gsub(/:/," "); print "0x0000"$4 " " "0x0000"$5}')
+	vendordev=$(lspci -n -p /lib/modules/$kernel/modules.pcimap |awk '/0106/{ gsub(/:/," "); print "0x0000"$4 " " "0x0000"$5}')
 	module=$(grep "$vendordev" /lib/modules/$kernel/modules.pcimap |awk '{print $1}')
 	find_module "$module"
 }


More information about the pld-cvs-commit mailing list