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
2024-02-08 18:08:48 +01:00
sudo wg-quick up $1
2023-02-22 19:17:52 +01:00
exit
}
down () {
2024-02-08 18:08:48 +01:00
sudo wg-quick down $1
2023-02-22 19:17:52 +01:00
start-program transmission-daemon
exit
}
2024-02-08 18:08:48 +01:00
[ "$2" = "up" ] && up $1
[ "$2" = "down" ] && down $1
2023-02-22 19:17:52 +01:00
exit 1