add check for litefile

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8772 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2011-01-30 16:25:29 +00:00
parent 280759cf23
commit 0faaa9e0a5

View File

@ -29,11 +29,16 @@ ELIST=[] # entry list, each entry will contain the type and the path
INFO=`/usr/bin/cat /etc/niminfo | grep 'NIM_HOSTNAME'`
ME=`echo $INFO | /usr/bin/awk -F= '{print $2}' | /usr/bin/awk -F. '{print $1}'`
if [ ! -e ${STATELITE} ]; then
if [ ! -s ${STATELITE} ]; then
echo "no ${STATELITE} file"
echo "no ${STATELITE} file" >>$LOG
exit 0
fi
if [ ! -s ${LITEFILE} ]; then
echo "no ${LITEFILE} file"
echo "no ${LITEFILE} file" >>$LOG
exit 0
fi
# check the statelite.table file to see if we have
# a persistent dir to mount.