#!/usr/bin/ksh
#
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident	"@(#)ii.cluster	1.6	04/06/15 SMI"

CMD=/usr/opt/SUNWesm/sbin/iiboot

if [[ -z "$2" ]]
then
	opt=usage
else
	opt=$1
fi

case $opt in
'start')
	if [[ -x $CMD ]]
	then
		$CMD -C "$2" -r
	fi
	;;

'stop')
	if [[ -x $CMD ]]
	then
		$CMD -C "$2" -s
	fi
	;;

*)
	echo "usage: ii {start|stop} cluster_resource"
	;;
esac
