From: nathan Date: Tue, 29 May 2007 19:39:51 +0000 (+0000) Subject: b=12461 X-Git-Tag: v1_8_0_110~1579 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=eee0d286768b0757b2c2bf12264b3eab4ba1ac26;p=fs%2Flustre-release.git b=12461 better "options lnet" grabbing --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 014248c..90c08a4 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -105,7 +105,7 @@ load_modules() { echo Loading modules from $LUSTRE load_module ../lnet/libcfs/libcfs [ -z "$LNETOPTS" ] && \ - LNETOPTS=`awk '/options lnet/ { print $3 }' /etc/modprobe.conf` + LNETOPTS=$(awk '/^options lnet/ { print $0}' /etc/modprobe.conf | sed 's/^options lnet //g') echo "lnet options: '$LNETOPTS'" # note that insmod will ignore anything in modprobe.conf load_module ../lnet/lnet/lnet $LNETOPTS