mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 13:22:36 +00:00 
			
		
		
		
	support running xcataixpost if on a Linux node, note this assume that the caller has xdcp xcataixpost to tmp on the node, before calling. See updatenode.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14512 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -122,9 +122,19 @@ pmatch ()
 | 
			
		||||
 | 
			
		||||
  return 1          # non-zero return code means string not matched by pattern
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# check if on AIX node
 | 
			
		||||
if [ ! `uname` = Linux ]; then
 | 
			
		||||
  # if we don't have xcataixpost on the node, get it
 | 
			
		||||
  #if [ ! -f /xcatpost/xcataixpost  ]; then
 | 
			
		||||
  #  if [ ! -d /xcatpost ]; then
 | 
			
		||||
  #    mkdir -p /xcatpost; 
 | 
			
		||||
  #  fi
 | 
			
		||||
  #fi
 | 
			
		||||
  logger -t xCAT -p local4.err "Running xcataixpost $*";
 | 
			
		||||
  MYDIR=`dirname $0`
 | 
			
		||||
  exec $MYDIR/xcataixpost $*
 | 
			
		||||
  exit
 | 
			
		||||
fi
 | 
			
		||||
# parse the arguments
 | 
			
		||||
ARGNUM=$#;
 | 
			
		||||
if [ -z $1 ]; then
 | 
			
		||||
@@ -158,11 +168,11 @@ else
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if [ ! `uname` = Linux ]; then
 | 
			
		||||
   MYDIR=`dirname $0`
 | 
			
		||||
   exec $MYDIR/xcatdsklspost.aix
 | 
			
		||||
   exit
 | 
			
		||||
fi
 | 
			
		||||
#if [ ! `uname` = Linux ]; then
 | 
			
		||||
#   MYDIR=`dirname $0`
 | 
			
		||||
#   exec $MYDIR/xcatdsklspost.aix
 | 
			
		||||
#   exit
 | 
			
		||||
#fi
 | 
			
		||||
#SLI=$(awk 'BEGIN{srand(); printf("%d\n",rand()*10)}')
 | 
			
		||||
#sleep $SLI
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user