From 35e1bc0215f3a31873344d3a4c9cd1d91237fc58 Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Sat, 6 Jan 2024 13:52:16 +0100 Subject: [PATCH] =?utf8?q?R=C3=B3=C5=BCnica=20w=20reprezentacji=20czasu=20?= =?utf8?q?modyfikacji=20miedzy=20Debian=20testing=20a=20stable=20i=20oldst?= =?utf8?q?able?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tools/sbin/immudex-crypt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/sbin/immudex-crypt b/tools/sbin/immudex-crypt index a9f0ac2..91ffd80 100755 --- a/tools/sbin/immudex-crypt +++ b/tools/sbin/immudex-crypt @@ -72,7 +72,10 @@ function open() { fi cryptsetup open $1 immudex-crypt${index}; mkdir -p /media/${USER}/immudex-crypt${index}; - dmDevice=$(ls -l /dev/mapper/immudex-crypt${index} | awk '{printf $10}' | cut -d "/" -f 2); + # Różnica w reprezentacji czasu modyfikacji miedzy Debian testing a stable i oldstable + #dmDevice=$(ls -l /dev/mapper/immudex-crypt${index} | awk '{printf $10}' | cut -d "/" -f 2); + lastField=$(ls -l /dev/mapper/immudex-crypt${index} | grep -o ' ' | wc -l); + dmDevice=$(ls -al /dev/mapper/immudex-crypt0 | cut -d " " -f ${lastField}- | cut -d "/" -f2); 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