diff options
-rw-r--r-- | cryptfs.bin.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cryptfs.bin.in b/cryptfs.bin.in index d7ba868..8465c70 100644 --- a/cryptfs.bin.in +++ b/cryptfs.bin.in @@ -209,8 +209,8 @@ do_mount() { ) host=$(extract_ssh_host "${host}") while [ $(date +%s) -lt ${max_wait} ] && \ - ! #PING6# -c1 "${host}" >/dev/null 2>&1 && \ - ! ping -c1 "${host}" >/dev/null 2>&1; do + ! timeout 1 #PING6# -c1 "${host}" >/dev/null 2>&1 && \ + ! timeout 1 ping -c1 "${host}" >/dev/null 2>&1; do >&2 printf ',' sleep 1 done |