octopus
Part of the Furniture
@Martineau
I got the script working. This funcktion doesn't get any value $1 tested with $dev to.
I got the script working. This funcktion doesn't get any value $1 tested with $dev to.
Code:
DEV=$1
VPN_ID=${DEV:4:1} # << tun1(1)
if [ $(Check_VPNState $VPN_ID $CONNECTED) = $CONNECTED ]; then
VPN_WANIP=`curl -s --interface "tun1"$VPN_ID "http://ipecho.net/plain"`