From ea607c0113d76b44c643991e93470da8f40b2d49 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 6 May 2023 16:50:39 -0400 Subject: [PATCH] ping-up.sh: added --- src/.local/bin/ping-up.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 src/.local/bin/ping-up.sh 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