From 8a40af134224cb1411b54a74ebe7bf60c0effc4f Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 31 Mar 2008 17:13:30 -0700 Subject: add workaround for watchlink to IPaddr2-vyatta --- scripts/ocf-IPaddr2-vyatta | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'scripts/ocf-IPaddr2-vyatta') diff --git a/scripts/ocf-IPaddr2-vyatta b/scripts/ocf-IPaddr2-vyatta index 0d1101c..082b84f 100755 --- a/scripts/ocf-IPaddr2-vyatta +++ b/scripts/ocf-IPaddr2-vyatta @@ -373,21 +373,7 @@ delete_interface () { if [ $? -ne 0 ]; then return $OCF_ERR_GENERIC fi - - CMD="$IP2UTIL -o -f inet addr show $iface" - - ocf_log info "$CMD" - ADDR=`$CMD` - - if [ $? -ne 0 -o ! -z "$ADDR" ]; then - return $? - fi - - CMD="$IP2UTIL link set $iface down" - - ocf_log info "$CMD" - $CMD - return $? + return 0 } # -- cgit v1.2.3