#!/bin/sh echo "Closing all VPNs..." osascript -e " tell application \"Tunnelblick\" disconnect all end tell" sleep 5 echo "Updating dynamic DNS entry..." nsupdate-ddns.sh