1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Only use vpn0 as we're admin

This commit is contained in:
Ryan Kes 2019-10-15 19:24:16 +02:00
parent 55832e2080
commit 756471777f

View File

@ -8,13 +8,11 @@ STATUS="$(nmcli device status | grep -c wg0)"
case $STATUS in
1)
sudo wg-quick down wg0 | notify-send
sudo wg-quick down wg1
sudo wg-quick down wg0
notify-send 'Wireguard Down'
;;
*)
sudo wg-quick up wg0
sudo wg-quick up wg1
notify-send 'Wireguard Up'
;;
esac