From 38ee91873272f31e00e18a7864e4dac9cb708114 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Thu, 8 Feb 2024 18:08:48 +0100 Subject: [PATCH] Update the script. --- vpn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vpn b/vpn index efca126..bc0c5ab 100755 --- a/vpn +++ b/vpn @@ -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