notify when internet goes down

This commit is contained in:
David Todd 2019-10-14 11:49:32 -05:00
parent c9f85d905e
commit 62a40cac7e

View File

@ -5,4 +5,5 @@ if ping -c 1 1.1.1.1 > /dev/null 2>&1; then
else else
echo "😤" echo "😤"
echo "$(date)" >> /tmp/internet-outages echo "$(date)" >> /tmp/internet-outages
nfty send "Internet Outage"
fi fi