Update the script.
This commit is contained in:
parent
f7b659fdd9
commit
38ee918732
8
vpn
8
vpn
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
up () {
|
up () {
|
||||||
transmission-remote --exit
|
transmission-remote --exit
|
||||||
sudo wg-quick up myvpn
|
sudo wg-quick up $1
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
down () {
|
down () {
|
||||||
sudo wg-quick down myvpn
|
sudo wg-quick down $1
|
||||||
start-program transmission-daemon
|
start-program transmission-daemon
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
[ "$1" = "up" ] && up
|
[ "$2" = "up" ] && up $1
|
||||||
[ "$1" = "down" ] && down
|
[ "$2" = "down" ] && down $1
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user