#
#	Copyright (c) 2004 FUJITSU Limited
#		All Rights Reserved
#
#ident	"@(#)$Id: postinstall,v 1.1.2.4 2004/08/31 14:01:38 kurokawa Exp $ - FUJITSU"
# This script is only for the FJSVcsr
#set -x

## main
# checking root and set ROOTDIR
if [ ${CLIENT_BASEDIR} ]
then
	# Normal install
	ROOTDIR=${BASEDIR}
else
	# Remote install
	ROOTDIR=${PKG_INSTALL_ROOT}${BASEDIR}
fi

TOKEN=`uname -i`
SOURCE=${ROOTDIR}/var/svc/profile
FILE=platform_${TOKEN}.xml

if [ "$TOKEN" = "FJSV,GPUZC-L" -o "$TOKEN" = "FJSV,GPUZC-M" ]; then
	if [ -d ${SOURCE} ]; then
		cd ${SOURCE}
		rm -f platform.xml
		ln -s ${FILE} platform.xml
	else
		echo "WARNING: failed to create platform.xml link"
	fi
fi

exit 0
