#!/sbin/sh
#
# Copyright (c) 1998 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident	"@(#)gdevsync	1.6	99/10/16 SMI"

CMD="/usr/cluster/bin/scgdevs"

# test whether we are a cluster and exit if not a cluster
/usr/sbin/clinfo > /dev/null 2>&1
if [ $? != 0 ] ; then
        exit 0
fi

if [ -x "$CMD" ]; then
	# Confirm if global namespace is up to date.
	$CMD -v

	# If it is not up to date, reconfig.
	if [ $? -ne 0 ]; then
		$CMD -g
	fi
fi
