From 2628bb0d1cf2ff00221c481b39f6e8be33fc27b3 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 28 Nov 2019 13:24:59 +0100 Subject: scripts/pcidev: keep modprobe silent when resolving aliases modprobe -R is used to resolve aliases, but if the entry is not found, for example because the driver is built-in, it emits an error. Let's make it quiet to avoid this. --- scripts/pcidev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pcidev b/scripts/pcidev index 4a6875f..a8cecc2 100755 --- a/scripts/pcidev +++ b/scripts/pcidev @@ -178,7 +178,7 @@ for device in $pcidev; do if [ ! -z "$MAPFILE" -a -s "${MAPFILE%.pcimap}.alias" ]; then alias=$(printf "pci:v%08Xd%08Xsv%08Xsd%08Xbc%02Xsc%02Xi%02X" $xvid $xpid $xsvid $xspid $(((xclass >> 16) & 0xff)) $(((xclass >> 8) & 0xff)) $((xclass & 0xff))) list="" - for f1 in $(modprobe -R "$alias"); do + for f1 in $(modprobe -q -R "$alias"); do [ -n "${EXCLMOD}" -a "${EXCLMOD[*]##*|$f1|*}" != "${EXCLMOD[*]}" ] && continue [ -z "${ONLYMOD}" -o "${ONLYMOD[*]##*|$f1|*}" != "${ONLYMOD[*]}" ] || continue list="$list$f1 " -- 2.20.1