From 416c07e329c7795fdcd5914e779587e94b1dcb00 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sun, 18 Aug 2024 10:03:39 -0700 Subject: [PATCH] Fix login-to-wifi.sh --- system-menu/login-to-wifi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-menu/login-to-wifi.sh b/system-menu/login-to-wifi.sh index a2143ba..d3ef34f 100755 --- a/system-menu/login-to-wifi.sh +++ b/system-menu/login-to-wifi.sh @@ -11,7 +11,7 @@ fi # Reverse lookup the default route (idk why, it works sometimes) 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}" fi