]> git.alsa-project.org Git - alsa-utils.git/commitdiff
make alsaconf parse lspci output correctly
authorThomas Hood <jdthood@yahoo.co.uk>
Fri, 24 Sep 2004 11:29:02 +0000 (11:29 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 24 Sep 2004 11:29:02 +0000 (11:29 +0000)
Fix for systems like debian which has different lspci output.

Signed-off-by: Thomas Hood <jdthood@yahoo.co.uk>
alsaconf/alsaconf.in

index b062a6a10a6faabc3336e7c8e1f1fa94a9ff5eb8..890361d1b5cc837ff8cd2e3594437d2541432425 100644 (file)
@@ -513,7 +513,7 @@ BEGIN {
 /^[<literal space><literal tab>]*PCI: /{
        gsub(/0x/, "");
        gsub(/=/, ":");
-       x = sprintf ("'$lspci' -n 2>/dev/null| grep '"'Class 040.'"' | grep %s", $2);
+       x = sprintf ("'$lspci' -n 2>/dev/null| grep '"' 040.: '"' | grep %s", $2);
        if (system (x) == 0)
                printf "%s %s\n", $2, driver >>"'"$FOUND"'"
 }