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-06-05 13:53:52 +00:00
|
|
|
if [ $osname="Linux" ]
|
|
|
|
then
|
|
|
|
`$xcatpostdir/startsyncfiles.awk`
|
|
|
|
elif [ $osname="AIX" ]
|
|
|
|
then
|
|
|
|
`$xcatpostdir/startsyncfiles.aix`
|
|
|
|
fi
|
2009-06-04 15:33:44 +00:00
|
|
|
|
2009-06-05 13:53:52 +00:00
|
|
|
exit 0
|