alwaysbless
New Around Here
Hey guys ive created two scripts that I want to use when either the tun11 interface goes up or goes down and ive been trying to call these scripts using the openvpn-event script but has so far been unsuccessful. Ive done some research and I found a template
if [ $script_type == "up" -a $vpn_interface == "tun11" ];
then
fi
if [ $script_type == "down" -a $vpn_interface == "tun11" ];
then
fi
but this does not seem to be working. When I run it get an error up/down: unknown operand. Im probably completely wrong in the scripts syntax but im a noob lol is there anyone who has a working template that wouldnt mind sharing with me or explaining what im doing wrong? Thx guys!
if [ $script_type == "up" -a $vpn_interface == "tun11" ];
then
fi
if [ $script_type == "down" -a $vpn_interface == "tun11" ];
then
fi
but this does not seem to be working. When I run it get an error up/down: unknown operand. Im probably completely wrong in the scripts syntax but im a noob lol is there anyone who has a working template that wouldnt mind sharing with me or explaining what im doing wrong? Thx guys!