From: xf0r3m Date: Sat, 22 Jul 2023 18:56:23 +0000 (+0200) Subject: immudex_crypt - nie można okeślić systemu plików. - BT #86 X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=644e986a0e4d1b913bea6a7744366fcbc90f0e34;p=immudex-lhe.git immudex_crypt - nie można okeślić systemu plików. - BT #86 --- 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): "