From c4980cdbf673cd11437b7004e87ae1efabd593c1 Mon Sep 17 00:00:00 2001 From: Henrik Bengtsson Date: Thu, 16 May 2024 22:23:38 -0700 Subject: [PATCH] Add ucsf-vpn-flavors.sh --- vpnc/connect.d/ucsf-vpn-flavors.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 vpnc/connect.d/ucsf-vpn-flavors.sh diff --git a/vpnc/connect.d/ucsf-vpn-flavors.sh b/vpnc/connect.d/ucsf-vpn-flavors.sh new file mode 100644 index 0000000..925dac7 --- /dev/null +++ b/vpnc/connect.d/ucsf-vpn-flavors.sh @@ -0,0 +1,19 @@ +#!/bin/sh +#################################################################### +# Use user-specific UCSF VPN configurations +# +# Install: +# mkdir -p /etc/vpnc/connect.d/ +# cp ucsf-vpn-flavors.sh /etc/vpnc/connect.d/ +# +# Requires: +# https://github.com/HenrikBengtsson/ucsf-vpn +#################################################################### + +## Called via 'ucsf-vpn'? +if [ -n "${UCSF_VPN_VERSION}" ]; then + file="${UCSF_VPN_FLAVOR}"/connect.sh + if [ -f "${file}" ]; then + . "${file}" + fi +fi