From 0faaa9e0a508aaf0a3e4259201ebd054c99f99ee Mon Sep 17 00:00:00 2001 From: nott Date: Sun, 30 Jan 2011 16:25:29 +0000 Subject: [PATCH] add check for litefile git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8772 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/aixlitesetup | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/aixlitesetup b/xCAT/postscripts/aixlitesetup index 7b154a0e7..7a837d259 100644 --- a/xCAT/postscripts/aixlitesetup +++ b/xCAT/postscripts/aixlitesetup @@ -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.