The equilibrium stability for a smooth and discontinuous oscillator with dry friction