From fbbab16e27946134199239d318afae40d08b3dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 15 Feb 2012 22:44:31 +0100 Subject: wakey: fix sleep time --- wakey | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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!" -- cgit v1.1-2-g2b99