mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2024-10-06 04:16:16 -07:00
10 lines
176 B
Plaintext
10 lines
176 B
Plaintext
|
#!/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
|