From: rread Date: Thu, 26 Dec 2002 18:19:46 +0000 (+0000) Subject: Move the llecho.sh config into seperate script so it now works just like X-Git-Tag: v1_7_110~1^13~232 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=05c590a72e88a82e35d2c488cdd9ed2c91cbfd37;p=fs%2Flustre-release.git Move the llecho.sh config into seperate script so it now works just like llmount.sh --- diff --git a/lustre/tests/llechocleanup.sh b/lustre/tests/llechocleanup.sh index de4b35d..2d63fa9 100755 --- a/lustre/tests/llechocleanup.sh +++ b/lustre/tests/llechocleanup.sh @@ -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 +