From df8450cf20f480ddc065d34cf612e15ee6b17aa3 Mon Sep 17 00:00:00 2001 From: immarvin Date: Sun, 25 Nov 2012 04:12:58 +0000 Subject: [PATCH] add proper return value git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14421 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/mountpost | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/mountpost b/xCAT/postscripts/mountpost index 8a5c68825..6046fc350 100755 --- a/xCAT/postscripts/mountpost +++ b/xCAT/postscripts/mountpost @@ -13,5 +13,8 @@ POST_DIR=$(tabdb $NODERESTAB $RESNAME $noderes_install_dir)/$POSTDIR logger -t xcat -p local4.info "Install: mounting /post" mkdir /post 2>&1 | logger -t xcat -p local4.info -mount -r -o nolock $NFS:$POST_DIR /post 2>&1 | logger -t xcat -p local4.info +result=`mount -r -o nolock $NFS:$POST_DIR /post 2>&1` +RETURNCODE=$? +logger -t xcat -p local4.info $result +exit $RETURNCODE