Update the script.

This commit is contained in:
CronyAkatsuki 2024-02-08 18:08:48 +01:00
parent f7b659fdd9
commit 38ee918732

8
vpn
View File

@ -2,16 +2,16 @@
up () {
transmission-remote --exit
sudo wg-quick up myvpn
sudo wg-quick up $1
exit
}
down () {
sudo wg-quick down myvpn
sudo wg-quick down $1
start-program transmission-daemon
exit
}
[ "$1" = "up" ] && up
[ "$1" = "down" ] && down
[ "$2" = "up" ] && up $1
[ "$2" = "down" ] && down $1
exit 1