This script will download the config.ini file for an AC GW managed in the Portal. Either enter the macaddr (lower case) and password (case sensitive) as CLI arguments, or you'll be prompted for them if you don't. Win, win.
Usage: ./ac_portal_getter [macaddr] [httpPortalPassword]