diff options
Diffstat (limited to 'cryptfs.in')
-rw-r--r-- | cryptfs.in | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -39,7 +39,7 @@ start) do if ! mountpoint -q "${neededKeyFs}" then - if echo "${fsTab}" | grep -q "^\(ssh\|ftp\)fs#\S*\s\+${neededKeyFs}\s" + if echo "${fsTab}" | grep -q "^\S\+\s\+${neededKeyFs}\s\+fuse\.\(ssh\|ftp\)fs\s" then maxWait=120 while [ ${maxWait} -gt 0 ] && ! /sbin/ip -o addr show scope global | grep -q '\S' @@ -50,8 +50,8 @@ start) done host="$( echo "${fsTab}" | \ - grep -m1 "^\(ssh\|ftp\)fs#\S*\s\+${neededKeyFs}\s" | \ - sed "s>^\(ssh\|ftp\)fs#\([^ :@]*@\)\?\([^ :@]\+\)\(:\S\+\)\?\s\+${neededKeyFs}\s.*$>\3>" + grep -m1 "^\S\+\s\+${neededKeyFs}\s\+fuse\.\(ssh\|ftp\)fs\s" | \ + sed "s>^\([^ :@]*@\)\?\([^ :@]\+\)\(:\S\+\)\?\s\+${neededKeyFs}\s.*$>\2>" )" while [ ${maxWait} -gt 0 ] && ! /bin/ping6 -c1 ${host} &> /dev/null && ! /bin/ping -c1 ${host} &> /dev/null do |