ping-up.sh: added

This commit is contained in:
dogeystamp 2023-05-06 16:50:39 -04:00
parent 6501690184
commit ea607c0113
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

14
src/.local/bin/ping-up.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
# ping until successful, then alert
while true; do
if ping -c 1 $1; then
echo Ping successful
notify-send -a "ping-up" "Ping is successful"
figlet Ping successful
tput bel
break
else
sleep 5
fi
done