Whamcloud - gitweb
Make the cleanup and remount scripts consistent in accepting "NAME" as
[fs/lustre-release.git] / lustre / tests / llrmount.sh
index 51a559e..f33b3eb 100755 (executable)
@@ -1,9 +1,13 @@
 #!/bin/sh
 
-LCONF=../utils/lconf
+LCONF=${LCONF:-../utils/lconf}
+NAME=${NAME:-local}
 
-if [ ! -f local.xml ]; then
-   ./local.sh
+config=$NAME.xml
+mkconfig=./$NAME.sh
+
+if [ ! -f $config -o $mkconfig -nt $config ]; then
+   $mkconfig $config || exit 1
 fi
 
-${LCONF} --gdb local.xml
+${LCONF} --gdb $config || exit 2