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 51262156b1
commit 457003a0c6

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