Impact of the equation of state on $f$- and $p$- mode oscillations of neutron stars