Whamcloud - gitweb
- 2.6 fixes landed
[fs/lustre-release.git] / lustre / tests / llrmount.sh
1 #!/bin/sh
2
3 LCONF=${LCONF:-../utils/lconf}
4 NAME=${NAME:-local}
5
6 config=$NAME.xml
7 mkconfig=$NAME.sh
8
9 if [ "$PORTALS" ]; then
10   portals_opt="--portals=$PORTALS"
11 fi
12
13 if [ "$LUSTRE" ]; then
14   lustre_opt="--lustre=$LUSTRE"
15 fi
16
17 if [ "$LDAPURL" ]; then
18     conf_opt="--ldapurl $LDAPURL --config $NAME"
19 else
20     if [ ! -f $config -o $mkconfig -nt $config ]; then
21         sh $mkconfig $config || exit 1
22     fi
23     conf_opt="$config"
24 fi    
25
26 [ "$NODE" ] && node_opt="--node $NODE"
27
28 ${LCONF} $NOMOD $portals_opt $lustre_opt $node_opt $@ $conf_opt || exit 2