summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions b/functions
index 8ce24ea..8eef5b8 100644
--- a/functions
+++ b/functions
@@ -117,7 +117,8 @@ auto_modules() {
IFS=$'\n' read -rd '' -a mods < \
<(find /sys/devices -name modalias -exec sort -u {} + |
- xargs modprobe -d "$BASEDIR" -aRS "$KERNELVERSION" |
+ # delimit each input by a newline, expanded in place
+ xargs -d $'\n' modprobe -d "$BASEDIR" -aRS "$KERNELVERSION" |
sort -u)
printf "%s\n" "${mods[@]//-/_}"