From 6619ca93abe126da7c136f95e42f72aff6b4700f Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 20 Sep 2014 16:13:24 +0200 Subject: modules-load: use xargs -0 for busybox compatibility --- modules-load | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules-load') 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 "$@" -- cgit 1.4.1