From e2baf85790da3147b2638c5ce47998ae6e6bd558 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 3 Jul 2011 14:28:03 -0400 Subject: 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 --- functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions') 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[@]//-/_}" -- cgit v1.2.3-24-g4f1b