2009-06-05 13:53:52 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# IBM(c) 2009 EPL license http://www.eclipse.org/legal/epl-v10.html
|
2009-06-04 15:33:44 +00:00
|
|
|
#####################################################
|
|
|
|
#
|
2009-06-05 13:53:52 +00:00
|
|
|
# Initiate the xdcp from Mangement node to sync
|
|
|
|
# files to this node
|
2009-06-04 15:33:44 +00:00
|
|
|
#
|
|
|
|
#####################################################
|
|
|
|
|
|
|
|
# do nothing when UPDATENODE=1
|
2009-06-05 13:53:52 +00:00
|
|
|
if [ $UPDATENODE = 1 -o \
|
|
|
|
$NODESETSTATE = "netboot" -o \
|
|
|
|
$NODESETSTATE = "diskless" ]
|
|
|
|
then
|
|
|
|
exit 0
|
|
|
|
fi
|
2009-06-04 15:33:44 +00:00
|
|
|
|
2009-06-05 13:53:52 +00:00
|
|
|
logger -t xCAT "Performing syncfiles postscript"
|
2009-06-04 15:33:44 +00:00
|
|
|
|
2009-06-05 13:53:52 +00:00
|
|
|
osname=`uname`
|
2009-06-04 15:33:44 +00:00
|
|
|
# run the xdcp on the MN/SN
|
2009-06-05 13:53:52 +00:00
|
|
|
xcatpostdir="/xcatpost"
|
2009-06-04 15:33:44 +00:00
|
|
|
|
2009-07-15 13:08:51 +00:00
|
|
|
if [ $osname = "Linux" ]
|
2009-06-05 13:53:52 +00:00
|
|
|
then
|
2009-07-15 13:08:51 +00:00
|
|
|
`$xcatpostdir/startsyncfiles.awk`
|
|
|
|
returncode=$?
|
|
|
|
elif [ $osname = "AIX" ]
|
2009-06-05 13:53:52 +00:00
|
|
|
then
|
2009-07-15 13:08:51 +00:00
|
|
|
`$xcatpostdir/startsyncfiles.aix`
|
|
|
|
returncode=$?
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $returncode -eq 1 ]
|
|
|
|
then
|
|
|
|
logger -t xCAT "Perform Syncing File action successfully"
|
|
|
|
else
|
|
|
|
logger -t xCAT "Perform Syncing File action encountered error"
|
2009-06-05 13:53:52 +00:00
|
|
|
fi
|
2009-06-04 15:33:44 +00:00
|
|
|
|
2009-06-05 13:53:52 +00:00
|
|
|
exit 0
|