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 │
|
# │ crypt │ constants │
|
||||||
# ╰───────┴───────────╯
|
# ╰───────┴───────────╯
|
||||||
|
|
||||||
|
# TODO variablize
|
||||||
RWX_CRYPT_ROOT="/data/home/user/crypt"
|
RWX_CRYPT_ROOT="/data/home/user/crypt"
|
||||||
RWX_CRYPT_VAR="/var/lib/crypt"
|
RWX_CRYPT_VAR="/var/lib/crypt"
|
||||||
|
|
||||||
|
@ -13,6 +14,7 @@ RWX_CRYPT_VAR="/var/lib/crypt"
|
||||||
# │ crypt │ functions │
|
# │ crypt │ functions │
|
||||||
# ╰───────┴───────────╯
|
# ╰───────┴───────────╯
|
||||||
|
|
||||||
|
#| cat
|
||||||
rwx_crypt_device() {
|
rwx_crypt_device() {
|
||||||
local device size
|
local device size
|
||||||
local index=0
|
local index=0
|
||||||
|
@ -35,6 +37,15 @@ rwx_crypt_device() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#| id
|
||||||
|
#| mkdir
|
||||||
|
#| qemu-nbd
|
||||||
|
#| cryptsetup
|
||||||
|
#| mount
|
||||||
|
#| umount
|
||||||
|
#| rmdir
|
||||||
|
#| cat
|
||||||
|
#| rm
|
||||||
#/ cs
|
#/ cs
|
||||||
rwx_crypt_setup() {
|
rwx_crypt_setup() {
|
||||||
local action="${1}"
|
local action="${1}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue