mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 10:06:39 +00:00
Support multiple bonds on bring-up
This commit is contained in:
parent
da902b017c
commit
4e4ef047ba
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user