diff --git a/src/.local/bin/ping-up.sh b/src/.local/bin/ping-up.sh new file mode 100755 index 0000000..ad521f9 --- /dev/null +++ b/src/.local/bin/ping-up.sh @@ -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