I am trying to create a bash script that will prompt user input asking what vpn tunnel that the user would like to connect to. So, for example.. there is pvn1 and vpn2 so it needs to be something like: I understand that in it's current state it is pseudo code..
read -p "Connect to vpn1 or vpn2? (enter vpn1 or vpn2)"
if vpn1
then /path/to/vpn/cert
if vpn2
then /path/to/vpn/cert
I would appreciate some guidence with this as the only thing I can find online are "yes/no" input responses.. but these are usually [if "yes" then do "this" .. if "no or other" than do "nothing or exit"...
This example is too simple for what I need done. I need an exact bash command ran for "vpn1" and another exact bash command for "vpn2"
I appreciate all help :)