mirror of
https://github.com/suiryc/archlinux-initrd-ssh-cryptsetup.git
synced 2026-07-27 20:27:00 +03:00
Fixed and added some comments
This commit is contained in:
@@ -88,9 +88,11 @@ sshcs_trap_timeout() {
|
|||||||
echo "To deactivate, please unlock devices"
|
echo "To deactivate, please unlock devices"
|
||||||
trap sshcs_trapped_timeout SIGALRM
|
trap sshcs_trapped_timeout SIGALRM
|
||||||
(
|
(
|
||||||
|
# Wait for timeout
|
||||||
sleep ${sshcs_opt_timeout_poweroff}
|
sleep ${sshcs_opt_timeout_poweroff}
|
||||||
|
# Signal process (triggers poweroff)
|
||||||
kill -SIGALRM ${pid_init}
|
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
|
killall cryptsetup > /dev/null 2>&1
|
||||||
) &
|
) &
|
||||||
pid_timeout=$!
|
pid_timeout=$!
|
||||||
|
|||||||
Reference in New Issue
Block a user