]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
partial testcase
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 9 Feb 2011 19:19:27 +0000 (19:19 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 9 Feb 2011 19:19:27 +0000 (19:19 +0000)
svn-id: @12127

tests/bug-715930.sh [new file with mode: 0755]

diff --git a/tests/bug-715930.sh b/tests/bug-715930.sh
new file mode 100755 (executable)
index 0000000..dad7aae
--- /dev/null
@@ -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"
This page took 0.036013 seconds and 4 git commands to generate.