diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-07-03 20:28:03 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-07-04 22:14:14 +0200 |
commit | e2baf85790da3147b2638c5ce47998ae6e6bd558 (patch) | |
tree | 5f7eea36f1c8b61a5e03144735b044ea6088a5ba | |
parent | b8b732767c7ab18cbf041c61726d2c3c180f62ea (diff) | |
download | mkinitcpio-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>
-rw-r--r-- | functions | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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[@]//-/_}" |