net:bonding small style change for readability

This commit is contained in:
William Hubbs 2011-05-16 14:56:50 -05:00
parent db1daa5857
commit fd48bc09ff

View File

@ -104,8 +104,9 @@ bonding_pre_start()
fi
for s in ${slaves}; do
[ "${s}" = "${primary}" ] && continue
grep -q ${s} $sys_bonding_path/slaves \
|| echo "+${s}" >$sys_bonding_path/slaves
if ! grep -q ${s} $sys_bonding_path/slaves; then
echo "+${s}" >$sys_bonding_path/slaves
fi
done
else
/sbin/ifenslave "${IFACE}" ${slaves} >/dev/null