1 From 81bb87debd2a683bad2173d6cb16327c776fe3b3 Mon Sep 17 00:00:00 2001
2 From: Scott Little <scott.little@windriver.com>
3 Date: Mon, 2 Oct 2017 15:13:46 -0400
4 Subject: [PATCH 13/13] WRS: Patch1119: ipaddr2_ignore_lo_if_state.patch
7 heartbeat/IPaddr2 | 6 +++---
8 1 file changed, 3 insertions(+), 3 deletions(-)
10 diff --git a/heartbeat/IPaddr2 b/heartbeat/IPaddr2
11 index 2cd822d..59620d2 100755
12 --- a/heartbeat/IPaddr2
13 +++ b/heartbeat/IPaddr2
14 @@ -964,7 +964,7 @@ ip_start() {
15 local ip_status=`ip_served`
17 if [ "$ip_status" = "ok" ]; then
18 - if [ -n "`ip link show $NIC | grep \"state UP\"`" ]
19 + if [ -n "`ip link show $NIC | grep \"state UP\"`" ] || [ "$NIC" = "lo" ]
23 @@ -1033,7 +1033,7 @@ ip_start() {
27 - if [ -n "`ip link show $NIC | grep \"state UP\"`" ]
28 + if [ -n "`ip link show $NIC | grep \"state UP\"`" ] || [ "$NIC" = "lo" ]
32 @@ -1119,7 +1119,7 @@ ip_monitor() {
35 run_arp_sender refresh
36 - if [ -n "`ip link show $NIC | grep \"state UP\"`" ]
37 + if [ -n "`ip link show $NIC | grep \"state UP\"`" ] || [ "$NIC" = "lo" ]