From 2f9947c8e4d901a42fd6cbe940ed6f6ee3bdfe87 Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Sat, 9 May 2015 15:17:17 -0700 Subject: [PATCH] run: Pass cmd line arguments to openvpn * Pass command line arguments to openvpn if passed in. Enables users to easily override or add settings. * Resolves #42 --- bin/ovpn_run | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/ovpn_run b/bin/ovpn_run index 77c0997..291b32c 100755 --- a/bin/ovpn_run +++ b/bin/ovpn_run @@ -33,6 +33,8 @@ if [ "$OVPN_DEFROUTE" != "0" ] || [ "$OVPN_NAT" == "1" ] ; then done fi -conf="$OPENVPN/openvpn.conf" - -exec openvpn --config "$conf" +if [ "$#" -gt 0 ]; then + exec openvpn "$@" +else + exec openvpn --config "$OPENVPN/openvpn.conf" +fi