#!/bin/csh -f # If my router is down then the cable modem is irrelevant. fping -q hellmouth || exec echo "Hellmouth is really down." ssh -o BatchMode=yes -o ConnectTimeout=10 -q hellmouth true || exec echo "Hellmouth is down." # the first IP is one from work, the seond one is the first hop within my ISP found via traceroute. # All attempts must fail before the cable modem is powered. ssh -o BatchMode=yes -o ConnectTimeout=10 -q norad.futurequest.net true || fping -q 69.5.6.117 || fping -q 72.31.193.226 || fping -q 72.31.193.226 || fping -q 72.31.193.226 || /root/bin/power_cable_modem