Automatically reboot my router when it crashes
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Include date in logged timestamps

+1 -1
+1 -1
check.sh
··· 7 7 OUTLET_IP="10.42.0.123" 8 8 9 9 log() { 10 - echo "$(date +%H:%M) $1" >> "$LOGFILE" 10 + echo "$(date +"%Y-%m-%d %H:%M:%S") $1" >> "$LOGFILE" 11 11 } 12 12 13 13 if ping -c 1 "$ADDR1" &>/dev/null; then