From fd3528c3ec37ed0a5b69c3020005d1d7bd590f02 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 8 Jul 2025 02:27:02 +0200 Subject: [PATCH] crypt/setup --- sh/cryptsetup.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/sh/cryptsetup.sh b/sh/cryptsetup.sh index fd20a64..28e4de3 100644 --- a/sh/cryptsetup.sh +++ b/sh/cryptsetup.sh @@ -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"