configbond: ifdown the bond before ifup it for the case it has been configured
This commit is contained in:
parent
51262156b1
commit
457003a0c6
@ -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