#!/bin/sh

OVPN="/var/mobile/Library/OpenVPN"

if [ "$1" != "" ]
then
	echo "Making $1 the default OpenVPN configuration" 
	cp "$OVPN/$1" "$OVPN/client.ovpn"
else
	echo "Usage: $0 [configuration in OpenVPN directory to become default]"
	echo "Example: $0 example.ovpn"
fi
