Run the scripts tinc-up and tinc-down from a separate function, which