Skip to content

Instantly share code, notes, and snippets.

@ivyl
Created October 21, 2011 21:03
Show Gist options
  • Save ivyl/1304958 to your computer and use it in GitHub Desktop.
Save ivyl/1304958 to your computer and use it in GitHub Desktop.
vpn automation
#!/bin/sh
DIR=$(dirname "$0")
CONF=$1.conf
cd $DIR
if [ ! -f $CONF ]; then
echo "Unknown VPN $1!"
exit 1
fi
sudo openvpn --config $CONF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment