SVN: geninitrd/trunk/tests/bug-715930.sh

glen glen at pld-linux.org
Wed Feb 9 20:19:27 CET 2011


Author: glen
Date: Wed Feb  9 20:19:27 2011
New Revision: 12127

Added:
   geninitrd/trunk/tests/bug-715930.sh   (contents, props changed)
Log:
partial testcase


Added: geninitrd/trunk/tests/bug-715930.sh
==============================================================================
--- (empty file)
+++ geninitrd/trunk/tests/bug-715930.sh	Wed Feb  9 20:19:27 2011
@@ -0,0 +1,8 @@
+# change the current ahci entry in .pcimap (e.g. my ICH10: 0x8086:0x3a22 to 0x8086:0xffff) and run:
+
+class=0106
+pcimap="/lib/modules/$(uname -r)/modules.pcimap"
+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
+
+#it returns empty string instead of "ahci"


More information about the pld-cvs-commit mailing list