summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xwakey3
1 files changed, 2 insertions, 1 deletions
diff --git a/wakey b/wakey
index 70647a1..0201b90 100755
--- a/wakey
+++ b/wakey
@@ -6,8 +6,9 @@ CPT=0
while [ ${CPT} -ne 10 ]; do
CPT=$((CPT+1))
wol $mac
- ping -c 1 -W 10 $host 2>&1 >/dev/null
+ ping -c 1 -W 5 $host 2>&1 >/dev/null
[ $? -eq 0 ] && break
+ sleep 5
done
[ $? -ne 0 ] && echo " he is still asleep !" && exit 1
echo "$host is up, have fun!"