diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-15 22:44:31 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-15 22:44:31 +0100 |
commit | fbbab16e27946134199239d318afae40d08b3dbb (patch) | |
tree | fc3379d9e9f3373702156ed11ed1c971f9d83807 /wakey | |
parent | 1235cfbef895648d4b55ed021e5402ed41b92b8f (diff) | |
download | bin-fbbab16e27946134199239d318afae40d08b3dbb.zip bin-fbbab16e27946134199239d318afae40d08b3dbb.tar.gz |
wakey: fix sleep time
Diffstat (limited to 'wakey')
-rwxr-xr-x | wakey | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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!" |