From cdc0b4c427c858dd2f863d70a63813d40c4566c5 Mon Sep 17 00:00:00 2001 From: Julien Coloos Date: Sun, 12 Jul 2026 20:20:21 +0200 Subject: [PATCH] Fixed and added some comments --- src/hooks/ssh-cryptsetup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hooks/ssh-cryptsetup b/src/hooks/ssh-cryptsetup index eaac2a6..f5ddd84 100644 --- a/src/hooks/ssh-cryptsetup +++ b/src/hooks/ssh-cryptsetup @@ -88,9 +88,11 @@ sshcs_trap_timeout() { echo "To deactivate, please unlock devices" trap sshcs_trapped_timeout SIGALRM ( + # Wait for timeout sleep ${sshcs_opt_timeout_poweroff} + # Signal process (triggers poweroff) kill -SIGALRM ${pid_init} - # Signal is not processed if cryptsetup is waiting for the password + # Note: signal is not processed if cryptsetup is waiting for the password killall cryptsetup > /dev/null 2>&1 ) & pid_timeout=$!