This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TEST_URL="https://www.gstatic.com/generate_204" | |
MAX_LATENCY=1000 | |
ALLOWED_COUNTRIES="AT|BE|CA|CH|CZ|DE|DK|ES|FI|FL|FR|GB|HU|IE|IS|IT|LI|LU|NL|NO|PT|RO|SE|SK|SW|UK|US" | |
SLEEP=15 | |
TIMEOUT=$(awk "BEGIN {print (${MAX_LATENCY} / 1000) + 1}") | |
CURRENT=$(uci -q get passwall2.myshunt.default_node) | |
REMARK=$(uci -q get passwall2."$CURRENT".remarks) | |
SUB_COUNT=1 |
- Go to macvendors.com
- Sign up and generate your API token
- Paste the token into the
MACVENDORS_TOKEN
variable inside the script