aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown10
1 files changed, 0 insertions, 10 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 51321c7..c74bee1 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -39,16 +39,6 @@ out "Remounting rootfs as readonly"; {
sync
}
-out "Deactivating dmcrypt devices (if any exist)."; {
- [ -x /bin/cryptsetup ] && [ -x /bin/dmsetup ] && {
- dmsetup ls --target crypt \
- --exec "dmsetup info -c --noheadings -o open,name" |
- while read -r drive; do
- [ "${drive%%:*}" = "0" ] && cryptsetup close "${drive##*:}"
- done
- }
-}
-
run_hook post.shutdown
case "$1" in reboot) shalt r ;; poweroff) shalt p; esac