Interstellar shock waves with magnetic precursors