X-ray properties of early-type galaxies