summaryrefslogtreecommitdiff
path: root/sh/pa
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-07-04 18:17:15 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-07-04 18:17:15 -0700
commit8343b5ef0a97a3fe2b3bf8df1ecc5fb4608f330b (patch)
tree61c1351a58f98c63f6db9b0b8ec2d81b51b68dd1 /sh/pa
parentca558195f9cc480ada30a045ed0cd5b29ca01e7d (diff)
pa use ping -c1 instead of -w5, less packets to send, maybe more correct and better
Diffstat (limited to 'sh/pa')
-rwxr-xr-xsh/pa2
1 files changed, 1 insertions, 1 deletions
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"