Johannes Storm wrote a very tiny script. Is anyone able to prepare the patch here? I don't know where to start in the sources. NM is much to complicated for me to start helping with patches :(
For the meantime, his script for /etc/NetworkManager/dispatcher.d/:
activ_con=$(nmcli con status | grep "${REQUIRED_CONNECTION_NAME}")
activ_vpn=$(nmcli con status | grep "${VPN_CONNECTION_NAME}")
if [ "${activ_con}" -a ! "${activ_vpn}" ];
then
nmcli con up id "${VPN_CONNECTION_NAME}"
fi
Johannes Storm wrote a very tiny script. Is anyone able to prepare the patch here? I don't know where to start in the sources. NM is much to complicated for me to start helping with patches :(
For the meantime, his script for /etc/NetworkMan ager/dispatcher .d/:
#! /bin/bash
REQUIRED_ CONNECTION_ NAME="< Connection1> " NAME="< VpnConnection1> "
VPN_CONNECTION_
activ_con=$(nmcli con status | grep "${REQUIRED_ CONNECTION_ NAME}") CONNECTION_ NAME}") CONNECTION_ NAME}"
activ_vpn=$(nmcli con status | grep "${VPN_
if [ "${activ_con}" -a ! "${activ_vpn}" ];
then
nmcli con up id "${VPN_
fi