aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions b/functions
index 9b8d805..3798b79 100644
--- a/functions
+++ b/functions
@@ -511,6 +511,10 @@ do_unlock() {
return $?
}
+do_lock() {
+ status "Detaching encrypted device ${1}" /usr/lib/systemd/systemd-cryptsetup detach "$1" >/dev/null
+}
+
read_crypttab() {
# $1 = function to call with the split out line from the crypttab
local line nspo failed=0