configbond: ifdown the bond before ifup it for the case it has been configured
This commit is contained in:
parent
b701bed5f1
commit
bbefb20cb7
@ -239,7 +239,7 @@ fi
|
||||
echo "alias $str_bond_name bonding" > /etc/modprobe.d/$str_bond_name.conf
|
||||
|
||||
# Bring down the salve devices first
|
||||
for slave in ${array_bond_slaves[*]}; do
|
||||
for slave in ${str_bond_name} ${array_bond_slaves[*]}; do
|
||||
$(ifdown $slave &>/dev/null)
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user