about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-09-20 16:13:24 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-09-20 16:13:24 +0200
commit6619ca93abe126da7c136f95e42f72aff6b4700f (patch)
treefa897072e5e5453ee9bd091afea74a942bfcc52f
parent7f600fa96a270ec46dc3936eb66bd51e7037efdd (diff)
downloadrunit-void-6619ca93abe126da7c136f95e42f72aff6b4700f.tar.gz
runit-void-6619ca93abe126da7c136f95e42f72aff6b4700f.tar.xz
runit-void-6619ca93abe126da7c136f95e42f72aff6b4700f.zip
modules-load: use xargs -0 for busybox compatibility
-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 "$@"