Connexion au VPN sur le laptop

This commit is contained in:
Damien Broqua 2022-04-19 08:18:20 +02:00
parent 80f4d24c1d
commit f4a65f7a1a

View file

@ -177,3 +177,9 @@ export NVM_DIR="$HOME/.nvm"
# export MOZ_ENABLE_WAYLAND=1 # export MOZ_ENABLE_WAYLAND=1
# exec sway # exec sway
#fi #fi
EXISTS=`ip addr show tun0 > /dev/null && echo $?`
if [ `hostname` = "marty" ] && [ ${EXISTS} = 1 ] ; then
echo "Connecting people :|"
nmcli connection up VPN-DarKou --ask
fi