From 4e4ef047ba22adddd70b0b9dfbf06e8bab726742 Mon Sep 17 00:00:00 2001 From: Matt Ezell Date: Wed, 6 Dec 2017 12:17:27 -0500 Subject: [PATCH] Support multiple bonds on bring-up --- xCAT/postscripts/nicutils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/nicutils.sh b/xCAT/postscripts/nicutils.sh index e2e2548c8..766694e64 100755 --- a/xCAT/postscripts/nicutils.sh +++ b/xCAT/postscripts/nicutils.sh @@ -1336,7 +1336,7 @@ function create_bond_interface { # create required bond device ((i=0)) - while ! grep -sq "^$ifname$" /sys/class/net/bonding_masters; + while ! grep -sq "\b$ifname\b" /sys/class/net/bonding_masters; do [ $i -eq 0 ] && echo "+$ifname" >/sys/class/net/bonding_masters $sleep 0.5