summarylogtreecommitdiffstats
path: root/openvpn_wrapper
blob: 318dc95dd0190fd820998ca716f72da8cccea5f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# strip --ncp-disable parameter from call
#  --ncp-disable is removed from openvpn >=2.6
args=("$@")
for ((i=0;i<${#args[@]};i++))
do
	if [ "${args[$i]}" == "--ncp-disable" ]
	then
		unset args[$i]
	fi
done

echo "$0: openvpn wrapper for cyberghostvpn utility"
echo now executing /usr/bin/openvpn "${args[@]}"
/usr/bin/openvpn "${args[@]}"