#!/bin/sh
#DEST=`route | grep meru | sed -e "1d" | sed -e "2,$ d" | sed 's/ .*$//'`
#MASK=`ifconfig meru | grep Mask | sed -e 's/.*Mask://'`
PEER_IP=`grep "ucast meru" /etc/ha.d/ha.cf | sed -e "s/ucast meru //"`
#PEER_IP_PRESENT=`route | grep "$PEER_IP"`

route del -net $PEER_IP netmask 255.255.255.255

# Following lines only needed for a specific VLAN bleeding problem (custom build)
#SHARED_IP=`sed -e "1,83d" -e "85,1000d" /etc/ha.d/haresources |sed -e "s/[^0-9]*//"`
#INET_ADDR=`ifconfig meru| grep "inet addr"| cut -d':' -f2 | cut -d' ' -f1`
#ip route del local $SHARED_IP table main
#ip route add to local $INET_ADDR table main

