summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-07-03 20:28:03 +0200
committerDave Reisner <dreisner@archlinux.org>2011-07-04 22:14:14 +0200
commite2baf85790da3147b2638c5ce47998ae6e6bd558 (patch)
tree5f7eea36f1c8b61a5e03144735b044ea6088a5ba /functions
parentb8b732767c7ab18cbf041c61726d2c3c180f62ea (diff)
downloadmkinitcpio-e2baf85790da3147b2638c5ce47998ae6e6bd558.tar.gz
mkinitcpio-e2baf85790da3147b2638c5ce47998ae6e6bd558.tar.xz
functions: do not null delimit modalias data
These files will never be more than one line, and they're newline delimited already. Moreover, adding the extra null delimiters appears to do strange things in transit to modprobe. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions b/functions
index ac0617c..7581933 100644
--- a/functions
+++ b/functions
@@ -95,8 +95,8 @@ auto_modules() {
# Perform auto detection of modules via sysfs.
IFS=$'\n' read -rd '' -a mods < \
- <(find /sys/devices -name modalias -exec sort -zu {} + |
- xargs -0 modprobe -d "$BASEDIR" -aRS "$KERNELVERSION" |
+ <(find /sys/devices -name modalias -exec sort -u {} + |
+ xargs modprobe -d "$BASEDIR" -aRS "$KERNELVERSION" |
sort -u)
printf "%s\n" "${mods[@]//-/_}"