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.