From bdc93a48904abe2508085dbdffc3f2556b4163cc Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 29 Oct 2014 09:48:39 +0100 Subject: scripts/pcidev: don't try to enumerate devices when there's no bus When no PCI bus is found, "$pcidev" resolves to "/proc/bus/pci/*/*" and causes errors to be displayed at boot. --- scripts/pcidev | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/pcidev b/scripts/pcidev index 50dfeca..892c82a 100755 --- a/scripts/pcidev +++ b/scripts/pcidev @@ -121,6 +121,7 @@ fi oldlist=; xpid=; xvid=; xsvid=; xspid=; xclass= for device in $pcidev; do + [ -e "$device" ] || continue x=${device%??/??.?} dev=${device#$x} set -- `od -v -tx1 -An $device` -- 1.7.12.1