#!/bin/bash url="$(curl -I http://captive.apple.com | grep -Fi "Location" | awk '{print $2}')" xdg-open "${url}" &