Whamcloud - gitweb
- merge 0.7rc1 from b_devel to HEAD (20030612 merge point)
[fs/lustre-release.git] / lustre / tests / llmount.sh
1 #!/bin/sh
2 # suggested boilerplate for test script
3
4 LCONF=${LCONF:-../utils/lconf}
5 NAME=${NAME:-local}
6
7 config=$NAME.xml
8 mkconfig=$NAME.sh
9
10 if [ "$PORTALS" ]; then
11   portals_opt="--portals=$PORTALS"
12 fi
13
14 if [ "$LUSTRE" ]; then
15   lustre_opt="--lustre=$LUSTRE"
16 fi
17
18 if [ "$LDAPURL" ]; then
19     conf_opt="--ldapurl $LDAPURL --config $NAME"
20 else
21     sh $mkconfig $config || exit 1
22     conf_opt="$config"
23 fi    
24
25 [ "$NODE" ] && node_opt="--node $NODE"
26
27 if [ "$1" = "-v" ]; then
28   verbose="-v"
29 fi
30
31 [ -x $LCONF ] || chmod a+rx $LCONF
32
33 ${LCONF} $portals_opt $lustre_opt $node_opt --reformat --gdb \
34     $verbose $conf_opt  || exit 2