From 8343b5ef0a97a3fe2b3bf8df1ecc5fb4608f330b Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Thu, 4 Jul 2024 18:17:15 -0700 Subject: pa use ping -c1 instead of -w5, less packets to send, maybe more correct and better --- sh/pa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh/pa') diff --git a/sh/pa b/sh/pa index 86ae4e5..98ec16d 100755 --- a/sh/pa +++ b/sh/pa @@ -1,7 +1,7 @@ #!/bin/sh # Ping Alarm -while ! ping -w5 "$1"; do +while ! ping -c1 "$1"; do sleep 5 done notify-send "$1 on" -- cgit v1.2.3-70-g09d2