crypt/setup

This commit is contained in:
Marc Beninca 2025-07-08 02:27:02 +02:00
parent f9f93101ad
commit fd3528c3ec
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,8 +1,18 @@
_rwx_cmd_cs() { rwx_crypt "${@}"; }
# ╭───────╮
# │ crypt │
# ╰───────╯
# ╭───────┬───────────╮
# │ crypt │ constants │
# ╰───────┴───────────╯
RWX_CRYPT_ROOT="/data/home/user/crypt"
RWX_CRYPT_VAR="/var/lib/crypt"
# ╭───────┬───────────╮
# │ crypt │ functions │
# ╰───────┴───────────╯
rwx_crypt_device() {
local device size
local index=0
@ -25,7 +35,8 @@ rwx_crypt_device() {
fi
}
rwx_crypt() {
#/ cs
rwx_crypt_setup() {
local action="${1}"
local action_close="close"
local action_open="open"