Skip to content

Instantly share code, notes, and snippets.

@jasny
Last active Dec 13, 2015
Embed
What would you like to do?
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