From d34be2b3bda4d0bffbcea69e5a827a13249d7af6 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 1 Apr 2017 08:53:12 +0200 Subject: procede if ping6 succeedes --- cryptfs.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptfs.in b/cryptfs.in index 173cee3..0dd1637 100644 --- a/cryptfs.in +++ b/cryptfs.in @@ -53,7 +53,7 @@ start) grep -m1 "^\(ssh\|ftp\)fs#\S*\s\+${neededKeyFs}\s" | \ sed "s>^\(ssh\|ftp\)fs#\([^ :@]*@\)\?\([^ :@]\+\)\(:\S\+\)\?\s\+${neededKeyFs}\s.*$>\3>" )" - while [ ${maxWait} -gt 0 ] && ! /bin/ping -c1 ${host} &> /dev/null + while [ ${maxWait} -gt 0 ] && ! /bin/ping6 -c1 ${host} &> /dev/null && ! /bin/ping -c1 ${host} &> /dev/null do >&2 echo -ne "," sleep 1 -- cgit v1.2.3-70-g09d2