From 804addbf1640438f15229fafa296f49513eb932a Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 17 Jul 2012 16:20:54 +0200 Subject: cryptsetup: refactor do_lock This now uses the systemd code, and is in line with do_unlock. Signed-off-by: Tom Gundersen --- functions | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'functions') 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 -- cgit v1.2.3