dotfiles/home/bin/executable_linux-toggle-vpn

10 lines
176 B
Plaintext
Raw Normal View History

2023-10-07 21:47:35 -07:00
#!/usr/bin/env bash
if [ -f ~/.wg0 ]; then
sudo systemctl stop wg-quick-wg0.service
rm ~/.wg0
else
sudo systemctl restart wg-quick-wg0.service
touch ~/.wg0
fi