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:
parent
55832e2080
commit
756471777f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user