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