From 310f59e03cc6bd7381c088ff5cf7e6df3c2bf785 Mon Sep 17 00:00:00 2001 From: Bastian Doetsch Date: Sun, 6 Mar 2022 19:57:31 +0100 Subject: [PATCH] describe usage in script --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index f6b310b..1d77535 100644 --- a/README.md +++ b/README.md @@ -30,3 +30,15 @@ The `-c` flag allows to give a country code. Else `ch` will be used. ## Background The program uses `https://api.mullvad.net/www/relays/ /root/mullvad-best-server +chmod +x /root/mullvad-best-server +/usr/bin/wg-quick down $(wg show|grep interface | cut -d: -f2) || echo "nothing to shut down" +/usr/bin/wg-quick up "mullvad-$(/root/mullvad-best-server -c de)" +```