scripts/setup.sh: support systems where more than one domain is used

Change-Id: I38aab093f3d06797e0d69f75978df47c72d279f7
Signed-off-by: Cunyin Chang <cunyin.chang@intel.com>
This commit is contained in:
Cunyin Chang 2017-04-25 08:15:57 +08:00 committed by Daniel Verkamp
parent e2bf067577
commit 6562e95092

View File

@ -8,7 +8,7 @@ function linux_iter_pci {
# Argument is the class code
# TODO: More specifically match against only class codes in the grep
# step.
lspci -mm -n | grep $1 | tr -d '"' | awk -F " " '{print "0000:"$1}'
lspci -mm -n -D | grep $1 | tr -d '"' | awk -F " " '{print $1}'
}
function linux_bind_driver() {