diff options
author | Erich Eckner <git@eckner.net> | 2017-06-27 17:13:25 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-27 17:13:25 +0200 |
commit | a9b6c51da7e3016d0150f70c7ac7675d725d77c0 (patch) | |
tree | 25e17dd0f567b739c775431ca0f20feb4f949ecd | |
parent | d34be2b3bda4d0bffbcea69e5a827a13249d7af6 (diff) | |
download | cryptfs-daemon-a9b6c51da7e3016d0150f70c7ac7675d725d77c0.tar.xz |
adopt to newer format of /etc/fstab
-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 |