2019-03-05 05:46:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if ping -c 1 1.1.1.1 > /dev/null 2>&1; then
|
|
|
|
echo "😛"
|
|
|
|
else
|
|
|
|
echo "😤"
|
2019-10-09 00:42:26 +00:00
|
|
|
echo "$(date)" >> /tmp/internet-outages
|
2019-10-14 16:49:32 +00:00
|
|
|
nfty send "Internet Outage"
|
2019-03-05 05:46:56 +00:00
|
|
|
fi
|