SVN: geninitrd/trunk/mod-sata.sh

glen glen at pld-linux.org
Fri Jan 14 12:37:47 CET 2011


Author: glen
Date: Fri Jan 14 12:37:47 2011
New Revision: 12054

Modified:
   geninitrd/trunk/mod-sata.sh
Log:
- pcimap not used when lspci invoked with -n

Modified: geninitrd/trunk/mod-sata.sh
==============================================================================
--- geninitrd/trunk/mod-sata.sh	(original)
+++ geninitrd/trunk/mod-sata.sh	Fri Jan 14 12:37:47 2011
@@ -17,7 +17,7 @@
 		return
 	fi
 
-	set -- $(/sbin/lspci -n -p $pcimap | awk -vclass=$class '$2 == class":" {split($3, p, ":"); printf("0x0000%s 0x0000%s\n", p[1], p[2])}')
+	set -- $(/sbin/lspci -n | awk -vclass=$class '$2 == class":" {split($3, p, ":"); printf("0x0000%s 0x0000%s\n", p[1], p[2])}')
 	awk -vvendor=$1 -vdevice=$2 '$2 == vendor && $3 == device {print $1}' $pcimap
 }
 


More information about the pld-cvs-commit mailing list