↕
This commit is contained in:
parent
f4136fd5a9
commit
bb89404513
1 changed files with 7 additions and 6 deletions
|
@ -24,12 +24,6 @@ rwx_crypt() {
|
||||||
crypt_map="${mapper}/${crypt_arg}"
|
crypt_map="${mapper}/${crypt_arg}"
|
||||||
crypt_mount="${mount_root}/${crypt_arg}"
|
crypt_mount="${mount_root}/${crypt_arg}"
|
||||||
case "${action}" in
|
case "${action}" in
|
||||||
"${action_close}")
|
|
||||||
rwx_log_info "CLOSE"
|
|
||||||
# TODO unmount file system
|
|
||||||
# TODO close device
|
|
||||||
# TODO disconnect device
|
|
||||||
;;
|
|
||||||
"${action_open}")
|
"${action_open}")
|
||||||
rwx_log_info "OPEN"
|
rwx_log_info "OPEN"
|
||||||
# TODO find next available device
|
# TODO find next available device
|
||||||
|
@ -37,6 +31,12 @@ rwx_crypt() {
|
||||||
# TODO open device
|
# TODO open device
|
||||||
# TODO mount file system
|
# TODO mount file system
|
||||||
;;
|
;;
|
||||||
|
"${action_close}")
|
||||||
|
rwx_log_info "CLOSE"
|
||||||
|
# TODO unmount file system
|
||||||
|
# TODO close device
|
||||||
|
# TODO disconnect device
|
||||||
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
@ -47,6 +47,7 @@ rwx_crypt() {
|
||||||
*)
|
*)
|
||||||
rwx_log_info "Usage:"
|
rwx_log_info "Usage:"
|
||||||
rwx_log_info "${action_close}|${action_open}"
|
rwx_log_info "${action_close}|${action_open}"
|
||||||
|
# TODO list
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue