Browse Source

Correction d'un bug lors de la connexion au VPN

master
Damien Broqua 2 months ago
parent
commit
a3e3f9a524
  1. 5
      dotfiles/.zshrc

5
dotfiles/.zshrc

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

Loading…
Cancel
Save