SSID=$(iwconfig wlp1s0 | grep ESSID | sed -e 's/.*ESSID:"\(.*\)"/\1/' | xargs) if [[ $SSID == "WIFIonICE" ]]; then exit 0 else exit 1 fi