diff options
author | Tom Gundersen <teg@jklm.no> | 2012-07-17 16:20:54 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2012-07-17 16:42:37 +0200 |
commit | 804addbf1640438f15229fafa296f49513eb932a (patch) | |
tree | f513b2b1ca554dda03bad8d00a55f66fa18b5662 /functions | |
parent | 476b308f121b934859080e5ca48a93a504aadaf6 (diff) | |
download | initscripts-804addbf1640438f15229fafa296f49513eb932a.tar.xz |
cryptsetup: refactor do_lock
This now uses the systemd code, and is in line with do_unlock.
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |