travelmate: update to 2.0.7
[feed/packages.git] / net / travelmate / files / travelmate.vpn
index 8c1cf40480433a377b9307ddb71471791e3af41b..09ce503541bde0aef43a5be180ffe5db4b145694 100755 (executable)
@@ -8,16 +8,12 @@
 
 # Please note: you have to setup the package 'wireguard' or 'openvpn' before using this script
 
+. "/lib/functions.sh"
+
 export LC_ALL=C
 export PATH="/usr/sbin:/usr/bin:/sbin:/bin"
 set -o pipefail
 
-# source function library if necessary
-#
-if [ -z "${_C}" ]; then
-       . "/lib/functions.sh"
-fi
-
 vpn="${1}"
 vpn_action="${2}"
 vpn_service="${3}"