diff options
-rw-r--r-- | cryptfs.in | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -18,6 +18,18 @@ neededKeyFss="$( fi done )" +innermostFss="$( + for fs in ${cryptedFss} + do + echo "${fsTab}" | \ + awk '{print $2}' | \ + grep "^$( + echo "${fsTab}" | \ + grep "^${fs}\s" | \ + awk '{print $2}' + )/" + done +)" case $1 in @@ -66,10 +78,26 @@ start) fi done + for innermostFs in ${innermostFss} + do + if ! mountpoint -q "${innermostFs}" + then + mount "${innermostFs}" || exit $? + fi + done + ;; stop) + for innermostFs in ${innermostFss} + do + if mountpoint -q "${innermostFs}" + then + umount "${innermostFs}" || exit $? + fi + done + for cryptedFs in ${cryptedFss} do if findmnt --source "${cryptedFs}" > /dev/null |