scripts/vpn

18 lines
221 B
Plaintext
Raw Normal View History

2023-02-22 19:17:52 +01:00
#!/bin/sh
up () {
transmission-remote --exit
sudo wg-quick up myvpn
exit
}
down () {
sudo wg-quick down myvpn
start-program transmission-daemon
exit
}
[ "$1" = "up" ] && up
[ "$1" = "down" ] && down
exit 1