From 52c3f56db94f8d56c584abc9b09f450551298399 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 4 Jan 2012 13:04:38 -0500 Subject: function: suppress errors from modprobe kmod is a bit noisier about unresolvable aliases, but we don't really care for the purposes of creating the module whitelist. Signed-off-by: Dave Reisner --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 306c077..e5b4195 100644 --- a/functions +++ b/functions @@ -129,7 +129,7 @@ auto_modules() { IFS=$'\n' read -rd '' -a mods < \ <(find /sys/devices -name modalias -exec sort -u {} + | # delimit each input by a newline, expanded in place - xargs -d $'\n' modprobe -d "$BASEDIR" -aRS "$KERNELVERSION" | + xargs -d $'\n' modprobe -qd "$BASEDIR" -aRS "$KERNELVERSION" | sort -u) printf "%s\n" "${mods[@]//-/_}" -- cgit v1.2.3-24-g4f1b