You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ! grep -q "$network" ${wpa_supplicant_location}; then
echo "network={
ssid=$network
key_mgmt=NONE
}" >> ${wpa_supplicant_location}
fi
counter=0
while ! ip -br -4 address show dev ${wireless_if} scope global | awk '{split($3,a,"/"); print a[1]}' | grep -q "[0-2][0-9][0-9]\.[0-2][0-9][0-9]\.[0-2][0-9][0-9]\.[0-2][0-9][0-9]"; do
counter=$((counter+1))
sleep 5
if [[ $counter -gt 10 ]]; then
exit 1
fi
done
if wget -q --spider google.com; then
exit 0
fi
#TODO perform POST call to authenticate to captive portal