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