#!/bin/sh
#
# Support:      linux-ha-dev@lists.tummy.com
# License:      GNU General Public License (GPL)
# This script sets the weight of the node 


HA_DIR=/etc/ha.d
. ${HA_DIR}/shellfuncs

usage() {
	echo "usage: hb_setweight <node> <weight>"
	exit 1
}

if 
  [ $# = 0 ]
then
	usage
fi


if [ "$1" = "--help" ]; then
	usage
fi

ha_clustermsg <<-!MSG
	t=setweight
	node=$1
	weight=$2
!MSG


