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 }