#! /usr/bin/sh
#
# ident	"@(#)cms_sync	1.7	99/08/19 SMI"
#
# Copyright (c) 1998 by Sun Microsystems, Inc.
# All rights reserved.
#
trap "" 2

if [ `uname -i` != "SUNW,Ultra-4FT" ]
then
        # Not an ft1800
        exit 0
fi
 
CMS_SLEEP_PID_FILE=/etc/SUNWcms/.cms_sync_pid

case $1 in
start)
	exec 2>/dev/null
	echo "Waiting for CMS objects to online ..." > /dev/console
	sleep 600&
	pid=$!
	echo $pid > $CMS_SLEEP_PID_FILE
	wait $pid
	rm $CMS_SLEEP_PID_FILE
	;;
esac

# Make disks not previously available during start-up sequence,
# visible to the Volume Manager, and recreate Volume Manager
# configuration as necessary

/usr/sbin/vxdctl enable >/dev/null 2>&1
/usr/lib/vxvm/bin/vxreattach -rb >/dev/null 2>&1

