From d3d625a167025518095892da50db2b8483432c62 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 6 Jul 2023 12:18:50 +0200 Subject: [slx-dmsetup] Use new is_on function from slx-tools --- modules.d/slx-dmsetup/scripts/dmsetup-slx-device | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/slx-dmsetup/scripts/dmsetup-slx-device b/modules.d/slx-dmsetup/scripts/dmsetup-slx-device index 8bf0f097..195ab3ad 100755 --- a/modules.d/slx-dmsetup/scripts/dmsetup-slx-device +++ b/modules.d/slx-dmsetup/scripts/dmsetup-slx-device @@ -551,7 +551,7 @@ fi if [ -z "$writable_device" ]; then echo "$0: Could not find writable device with id '$SLX_WRITABLE_DEVICE_IDENTIFIER'." ramdisk_fallback -elif [ -n "$SLX_ID44_CRYPT" ] && [ "$SLX_ID44_CRYPT" != 0 ]; then +elif is_on "$SLX_ID44_CRYPT"; then # Config option crypts the entire ID44 device(s), before any slices are taken from it. if encrypt_device "$writable_device" "id44-crypt"; then echo "$0: ID44 encrypted" -- cgit v1.2.3-55-g7522