Correction d'un bug lors de la connexion au VPN
This commit is contained in:
parent
f4a65f7a1a
commit
a3e3f9a524
1 changed files with 3 additions and 2 deletions
|
@ -178,8 +178,9 @@ export NVM_DIR="$HOME/.nvm"
|
||||||
# exec sway
|
# exec sway
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
EXISTS=`ip addr show tun0 > /dev/null && echo $?`
|
ip addr show tun0 > /dev/null 2>&1
|
||||||
if [ `hostname` = "marty" ] && [ ${EXISTS} = 1 ] ; then
|
EXISTS=$?
|
||||||
|
if [ `hostname` = "marty" ] && [ ${EXISTS} -ne 0 ] ; then
|
||||||
echo "Connecting people :|"
|
echo "Connecting people :|"
|
||||||
nmcli connection up VPN-DarKou --ask
|
nmcli connection up VPN-DarKou --ask
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue