crypt/|
This commit is contained in:
parent
34881bb015
commit
6332717fa3
1 changed files with 11 additions and 0 deletions
11
sh/crypt.sh
11
sh/crypt.sh
|
@ -6,6 +6,7 @@
|
|||
# │ crypt │ constants │
|
||||
# ╰───────┴───────────╯
|
||||
|
||||
# TODO variablize
|
||||
RWX_CRYPT_ROOT="/data/home/user/crypt"
|
||||
RWX_CRYPT_VAR="/var/lib/crypt"
|
||||
|
||||
|
@ -13,6 +14,7 @@ RWX_CRYPT_VAR="/var/lib/crypt"
|
|||
# │ crypt │ functions │
|
||||
# ╰───────┴───────────╯
|
||||
|
||||
#| cat
|
||||
rwx_crypt_device() {
|
||||
local device size
|
||||
local index=0
|
||||
|
@ -35,6 +37,15 @@ rwx_crypt_device() {
|
|||
fi
|
||||
}
|
||||
|
||||
#| id
|
||||
#| mkdir
|
||||
#| qemu-nbd
|
||||
#| cryptsetup
|
||||
#| mount
|
||||
#| umount
|
||||
#| rmdir
|
||||
#| cat
|
||||
#| rm
|
||||
#/ cs
|
||||
rwx_crypt_setup() {
|
||||
local action="${1}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue