about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEnno Boland <g@s01.de>2017-11-01 17:30:10 +0100
committerGitHub <noreply@github.com>2017-11-01 17:30:10 +0100
commit22e26b776842e7eb7a231550bd5faf1aec04561b (patch)
tree34e3641a372b0b70a0325894d92487995fed1462
parentef59be657be407d6e668bb89ac70374dfc01d935 (diff)
parent38fea5196ff083971a15bab95e1de974fe0f821a (diff)
downloadrunit-void-22e26b776842e7eb7a231550bd5faf1aec04561b.tar.gz
runit-void-22e26b776842e7eb7a231550bd5faf1aec04561b.tar.xz
runit-void-22e26b776842e7eb7a231550bd5faf1aec04561b.zip
Merge pull request #76 from Aloz1/crypt_no_devices_found 20171102
Fix "No devices found" error during shutdown
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 7f2e38c..e0c37c8 100644
--- a/functions
+++ b/functions
@@ -50,7 +50,7 @@ deactivate_crypt() {
    if [ -x /sbin/dmsetup -o -x /bin/dmsetup ]; then
        msg "Deactivating Crypt Volumes"
        for v in $(dmsetup ls --target crypt --exec "dmsetup info -c --noheadings -o open,name"); do
-           [ ${v%%:*} -eq 0 ] && cryptsetup close ${v##*:}
+           [ ${v%%:*} = "0" ] && cryptsetup close ${v##*:}
        done
        deactivate_vgs "Crypt"
    fi