Created
July 18, 2022 15:27
-
-
Save mcorybillington/576fff5d40c9231548b853c5cd0e5fc6 to your computer and use it in GitHub Desktop.
Make a 3 sec beep when the network connection is restored
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
while :; do ping -c1 -w1 8.8.8.8 &>/dev/null && echo "UP: $(date -R)" && break || echo "DOWN: $(date -R)";sleep 1;done;(speaker-test -t sine -f 1000 > /dev/null)& pid=$!;sleep 3s;kill -9 $pid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment