blob: cecbbb5530fd42485eb1dc61212ae7ba256d83ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
ls /etc/wireguard/us-* |sort -R |tail -n 1 |while read file; do
# Replace `doas` with `sudo` if your machine uses `sudo`,
# or remove `doas` if users don't need to su to run wg-quick
wg-quick up $file;
printf "\nCreated Mullvad wireguard connection with file: $file";
printf "\n\nPrinting new IP info:\n"
curl https://am.i.mullvad.net/connected
done
|