From 644e986a0e4d1b913bea6a7744366fcbc90f0e34 Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Sat, 22 Jul 2023 20:56:23 +0200 Subject: [PATCH] =?utf8?q?immudex=5Fcrypt=20-=20nie=20mo=C5=BCna=20oke?= =?utf8?q?=C5=9Bli=C4=87=20systemu=20plik=C3=B3w.=20-=20BT=20#86?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tools/000/immudex_crypt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/000/immudex_crypt b/tools/000/immudex_crypt index 5ff721d..187849e 100755 --- a/tools/000/immudex_crypt +++ b/tools/000/immudex_crypt @@ -71,7 +71,7 @@ function open() { fi sudo cryptsetup open $1 immudex_crypt${index}; sudo mkdir -p /media/${USER}/immudex_crypt${index}; - dmDevice=$(ls -l /dev/mapper/immudex_crypt${index} | awk '{printf $10}' | cut -d "/" -f 2); + dmDevice=$(ls -l /dev/mapper/immudex_crypt${index} | awk '{printf $11}' | cut -d "/" -f 2); if ! $(sudo file -s /dev/${dmDevice} | grep -q 'ext4'); then echo "Could not determine filesystem of unlocked device."; echo -n "Format this device to ext4? (y/n): " -- 2.39.5