From bb894045130b6b13cf0fbd41d047c2eadf2a61a8 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 30 Mar 2025 12:41:48 +0200 Subject: [PATCH] =?UTF-8?q?=E2=86=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sh/cryptsetup.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sh/cryptsetup.sh b/sh/cryptsetup.sh index c258005..545ca67 100644 --- a/sh/cryptsetup.sh +++ b/sh/cryptsetup.sh @@ -24,12 +24,6 @@ rwx_crypt() { crypt_map="${mapper}/${crypt_arg}" crypt_mount="${mount_root}/${crypt_arg}" case "${action}" in - "${action_close}") - rwx_log_info "CLOSE" - # TODO unmount file system - # TODO close device - # TODO disconnect device - ;; "${action_open}") rwx_log_info "OPEN" # TODO find next available device @@ -37,6 +31,12 @@ rwx_crypt() { # TODO open device # TODO mount file system ;; + "${action_close}") + rwx_log_info "CLOSE" + # TODO unmount file system + # TODO close device + # TODO disconnect device + ;; *) ;; esac else @@ -47,6 +47,7 @@ rwx_crypt() { *) rwx_log_info "Usage:" rwx_log_info "${action_close}|${action_open}" + # TODO list ;; esac }