Whamcloud - gitweb
Move the llecho.sh config into seperate script so it now works just like
authorrread <rread>
Thu, 26 Dec 2002 18:19:46 +0000 (18:19 +0000)
committerrread <rread>
Thu, 26 Dec 2002 18:19:46 +0000 (18:19 +0000)
llmount.sh

lustre/tests/llechocleanup.sh

index de4b35d..2d63fa9 100755 (executable)
@@ -1,10 +1,15 @@
 #!/bin/sh
 
 LCONF=../utils/lconf
+NAME=${NAME:-echo}
+TMP=${TMP:-/tmp}
 
-if [ -f echo.xml ]; then
-   ${LCONF} --cleanup echo.xml
-else
-   echo "no echo.xml found"
+config=$NAME.xml
+mkconfig=./$NAME.sh
+
+if [ ! -f $config ]; then
+   sh $mkconfig $config || exit 1
 fi
 
+${LCONF} --cleanup echo.xml
+