Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > 2acd34fd833ce754a3cc56ff5df10f83 > files > 25

heartbeat-2.1.3-7.3mdv2010.0.x86_64.rpm

#!/bin/sh
#
#
# Description:	wrapper of OCF RA IPv6addr. See OCF RA IPv6addr for more information.
#
# Author:	Xun Sun <xunsun@cn.ibm.com> 
# Support:      linux-ha@lists.linux-ha.org
# License:      GNU General Public License (GPL)
# Copyright:	(C) 2005 International Business Machines
#

# Source function library.
. /etc/ha.d/resource.d//hto-mapfuncs

usage() {
    echo "usage: $0 <ip-address> $LEGAL_ACTIONS"
    exit 1
}

if [ $# != 2 ]; then
    usage
fi

OCF_TYPE=IPv6addr
OCF_RESOURCE_INSTANCE=${OCF_TYPE}_$1
export OCF_TYPE OCF_RESOURCE_INSTANCE

OCF_RESKEY_ipv6addr=$1; export OCF_RESKEY_ipv6addr
ra_execocf $2