Created
July 31, 2011 14:56
-
-
Save piotrkilczuk/1116854 to your computer and use it in GitHub Desktop.
Connect to openvpn network from console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
if [ -z $1 ] | |
then | |
echo "Input name, one of:" | |
ls /etc/openvpn/*.conf | sed 's/\/etc\/openvpn\///' | sed 's/.conf//' | |
exit 1 | |
fi | |
sudo openvpn --config /etc/openvpn/$1.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment