integ/base/initscripts/centos/patches/ifup-alias-check-ipaddr.patch
chendongqi e8910538de CentOS 8: Upgrade initscripts to version 10.00.1-1.el8_0.1
(1)Release Version Upgrade
(2)Matching code changes with el7 to el8

Story: 2006729
Task: 37669
Depends-On: https://review.opendev.org/#/c/696481/
Depends-On: https://review.opendev.org/#/c/696050/
Change-Id: I085c40a52d94ca38f63f2ff98db74149b750f922
Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
2019-12-13 18:15:33 +08:00

27 lines
814 B
Diff

From a45766732beaa475d48907824666e501bacc69db Mon Sep 17 00:00:00 2001
From: Teresa Ho <teresa.ho@windriver.com>
Date: Wed, 25 Sep 2019 15:56:36 -0400
Subject: [PATCH 1/1] ifup-alias-check-ipaddr
Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
---
network-scripts/ifup-aliases | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/network-scripts/ifup-aliases b/network-scripts/ifup-aliases
index 9086763..40454ed 100755
--- a/network-scripts/ifup-aliases
+++ b/network-scripts/ifup-aliases
@@ -175,7 +175,7 @@ function new_interface ()
ipseen_${IPGLOP}=$FILE; devseen_${DEVNUM}=$FILE;
";
- if [ -n "$ipseen" ]; then
+ if [ -n "$IPADDR" -a -n "$ipseen" ]; then
net_log $"error in $FILE: already seen ipaddr $IPADDR in $ipseen"
return 1
fi
--
1.8.3.1