Created
May 27, 2018 08:56
-
-
Save brovador/5b27f29df8c8c3d2e89699430834c330 to your computer and use it in GitHub Desktop.
bitbar plugin to check pihole url every 10 minutes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PIHOLE_IP=192.168.1.1 | |
ping -c 1 -W 0.1 $PIHOLE_IP > /dev/null | |
if [ $? = 0 ] | |
then | |
echo ◉ | |
else | |
echo ◎ | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment