Skip to content

Instantly share code, notes, and snippets.

@jasny
Last active December 13, 2015 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jasny/4943893 to your computer and use it in GitHub Desktop.
Save jasny/4943893 to your computer and use it in GitHub Desktop.
GTK interface to start openvpn
#!/bin/bash
CONFIG=$(zenity --file-selection --file-filter='*.opvn' --title="Select openvpn config file")
[ -n "$CONFIG" ] || exit 1
cd $(dirname "$CONFIG")
gksudo /usr/sbin/openvpn $CONFIG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment