Skip to content
Snippets Groups Projects
Commit eee0d286 authored by Nathan Rutman's avatar Nathan Rutman
Browse files

b=12461

better "options lnet" grabbing
parent 9f5069e4
No related branches found
No related tags found
No related merge requests found
...@@ -105,7 +105,7 @@ load_modules() { ...@@ -105,7 +105,7 @@ load_modules() {
echo Loading modules from $LUSTRE echo Loading modules from $LUSTRE
load_module ../lnet/libcfs/libcfs load_module ../lnet/libcfs/libcfs
[ -z "$LNETOPTS" ] && \ [ -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'" echo "lnet options: '$LNETOPTS'"
# note that insmod will ignore anything in modprobe.conf # note that insmod will ignore anything in modprobe.conf
load_module ../lnet/lnet/lnet $LNETOPTS load_module ../lnet/lnet/lnet $LNETOPTS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment