#!/bin/sh if [ "${ATHOME}" == "1" ] ; then exit 0 elif which iwgetid ; then [ x$(iwgetid --scheme) == x404WiFiNOTFound ] exit $? else exit 1 fi