From ae61c1e21a06723d6f36b5a9bfd6da1ba33403af Mon Sep 17 00:00:00 2001 From: immarvin Date: Fri, 23 Nov 2012 03:23:14 +0000 Subject: [PATCH] add return value git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14409 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/HPCbootstatus.linux | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/xCAT/postscripts/HPCbootstatus.linux b/xCAT/postscripts/HPCbootstatus.linux index 95fe552b0..f67c51741 100644 --- a/xCAT/postscripts/HPCbootstatus.linux +++ b/xCAT/postscripts/HPCbootstatus.linux @@ -24,7 +24,7 @@ if [ -f /opt/xcat/xcatinfo ]; then fi else echo "xCAT management server IP can't be determined.\nexiting..." - exit + exit -1 fi # add HPCbootstatus.linuxinit to /etc/init.d for diskful node reboot @@ -94,9 +94,13 @@ while [ true ]; do let COUNT=$COUNT+1 fi - if [ $COUNT = $ITEMNUM ] || [ $PASSED -gt $TIMEOUT ]; then - exit - fi + if [ $COUNT = $ITEMNUM ]; then + exit 0 + fi + + if [ $PASSED -gt $TIMEOUT ]; then + exit 1 + fi let PASSED=$PASSED+$INTERVAL sleep $INTERVAL @@ -104,3 +108,4 @@ while [ true ]; do done +exit 0