mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 23:26:30 +01:00
make alsaconf parse lspci output correctly
Fix for systems like debian which has different lspci output. Signed-off-by: Thomas Hood <jdthood@yahoo.co.uk>
This commit is contained in:
parent
24f54a9ea6
commit
33b47cd2d4
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ BEGIN {
|
||||||
/^[<literal space><literal tab>]*PCI: /{
|
/^[<literal space><literal tab>]*PCI: /{
|
||||||
gsub(/0x/, "");
|
gsub(/0x/, "");
|
||||||
gsub(/=/, ":");
|
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)
|
if (system (x) == 0)
|
||||||
printf "%s %s\n", $2, driver >>"'"$FOUND"'"
|
printf "%s %s\n", $2, driver >>"'"$FOUND"'"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue