Fix login-to-wifi.sh
This commit is contained in:
parent
a6fa3120d6
commit
416c07e329
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user