summaryrefslogtreecommitdiffstats
path: root/wakey
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-15 22:44:31 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-15 22:44:31 +0100
commitfbbab16e27946134199239d318afae40d08b3dbb (patch)
treefc3379d9e9f3373702156ed11ed1c971f9d83807 /wakey
parent1235cfbef895648d4b55ed021e5402ed41b92b8f (diff)
downloadbin-fbbab16e27946134199239d318afae40d08b3dbb.zip
bin-fbbab16e27946134199239d318afae40d08b3dbb.tar.gz
wakey: fix sleep time
Diffstat (limited to 'wakey')
-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!"