Fix login-to-wifi.sh

This commit is contained in:
Alexander Rosenberg 2024-08-18 10:03:39 -07:00
parent a6fa3120d6
commit 416c07e329
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -11,7 +11,7 @@ fi
# Reverse lookup the default route (idk why, it works sometimes) # Reverse lookup the default route (idk why, it works sometimes)
login_addr="$(mullvad-exclude host "${default_route}" "${default_route}" | awk 'NR==6 { print $4 }')" login_addr="$(mullvad-exclude host "${default_route}" "${default_route}" | awk 'NR==6 { print $4 }')"
if (( ${?} != 0)); then if [[ "${login_addr}" = 'found:' ]]; then
login_addr="${default_route}" login_addr="${default_route}"
fi fi