network scripts: revert the network state after running ifdown, not before