From 33b47cd2d41fc1179b586760f9c04bfc9841252e Mon Sep 17 00:00:00 2001 From: Thomas Hood Date: Fri, 24 Sep 2004 11:29:02 +0000 Subject: [PATCH] make alsaconf parse lspci output correctly Fix for systems like debian which has different lspci output. Signed-off-by: Thomas Hood --- alsaconf/alsaconf.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in index b062a6a..890361d 100644 --- a/alsaconf/alsaconf.in +++ b/alsaconf/alsaconf.in @@ -513,7 +513,7 @@ BEGIN { /^[]*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"'" } -- 2.47.1