aef592b629
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3523 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
33 lines
669 B
Bash
33 lines
669 B
Bash
#!/bin/sh
|
|
# IBM(c) 2009 EPL license http://www.eclipse.org/legal/epl-v10.html
|
|
#####################################################
|
|
#
|
|
# Initiate the xdcp from Mangement node to sync
|
|
# files to this node
|
|
#
|
|
#####################################################
|
|
|
|
# do nothing when UPDATENODE=1
|
|
if [ $UPDATENODE = 1 -o \
|
|
$NODESETSTATE = "netboot" -o \
|
|
$NODESETSTATE = "diskless" ]
|
|
then
|
|
exit 0
|
|
fi
|
|
|
|
logger -t xCAT "Performing syncfiles postscript"
|
|
|
|
osname=`uname`
|
|
# run the xdcp on the MN/SN
|
|
xcatpostdir="/xcatpost"
|
|
|
|
if [ $osname="Linux" ]
|
|
then
|
|
`$xcatpostdir/startsyncfiles.awk`
|
|
elif [ $osname="AIX" ]
|
|
then
|
|
`$xcatpostdir/startsyncfiles.aix`
|
|
fi
|
|
|
|
exit 0
|