I am looking for a "reliable" way to find out what network is the
computer using. I think I have the WiFi part working.check_wifi_status()
{ local wifi_interface=$(networksetup -listallhardwareports | grep -A 1
Wi-Fi | awk '/Device:/ {print $2}') if ...