From f005fbf41646437964458d4c2028e6fdc04b59a1 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 18 Nov 2022 18:07:38 +0100 Subject: bin: add a few scripts --- bin/wait-online | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/wait-online (limited to 'bin/wait-online') diff --git a/bin/wait-online b/bin/wait-online new file mode 100755 index 0000000..7ad52e1 --- /dev/null +++ b/bin/wait-online @@ -0,0 +1,10 @@ +#!/bin/sh + +trap '{ exit 0; }' INT + +while true; do + ping -c3 "${1:-gentoo.org}" && + env BEEP_MSG="online again" beep && + break + sleep 1 +done -- cgit 1.4.1