From a9b6c51da7e3016d0150f70c7ac7675d725d77c0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 27 Jun 2017 17:13:25 +0200 Subject: adopt to newer format of /etc/fstab --- cryptfs.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cryptfs.in b/cryptfs.in index 0dd1637..8b5d1a8 100644 --- a/cryptfs.in +++ b/cryptfs.in @@ -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 -- cgit v1.2.3-70-g09d2