configbond: ifdown the bond before ifup it for the case it has been configured

This commit is contained in:
daniceexi 2014-06-20 04:35:41 -04:00
parent b701bed5f1
commit bbefb20cb7

View File

@ -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