diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2014-09-20 16:13:24 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2014-09-20 16:13:24 +0200 |
commit | 6619ca93abe126da7c136f95e42f72aff6b4700f (patch) | |
tree | fa897072e5e5453ee9bd091afea74a942bfcc52f | |
parent | 7f600fa96a270ec46dc3936eb66bd51e7037efdd (diff) | |
download | runit-void-6619ca93abe126da7c136f95e42f72aff6b4700f.tar.gz runit-void-6619ca93abe126da7c136f95e42f72aff6b4700f.tar.xz runit-void-6619ca93abe126da7c136f95e42f72aff6b4700f.zip |
modules-load: use xargs -0 for busybox compatibility
-rwxr-xr-x | modules-load | 4 |
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 "$@" |