Add template script for if-{pre-up,post-down}.d