about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xmodules-load4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-load b/modules-load
index 00eca9f..401727b 100755
--- a/modules-load
+++ b/modules-load
@@ -11,7 +11,7 @@ find -L /etc/modules-load.d /run/modules-load.d /usr/lib/modules-load.d \
 # Load each basename only once.
 	sort -k2 -s | uniq -f1 | cut -d' ' -f1 |
 # Read the files, output all non-empty, non-comment lines.
-	xargs -r -d'\n' grep -h -v -e '^[#;]' -e '^$'
+	tr '\012' '\0' | xargs -0 -r grep -h -v -e '^[#;]' -e '^$'
 } |
 # Call modprobe on the list of modules
-xargs -r -d'\n' modprobe -ab "$@"
+tr '\012' '\0' | xargs -0 -r modprobe -ab "$@"