1
0
Fork 0
cryptsetup/debian/initramfs/scripts/local-bottom/cryptopensc
Daniel Baumann 74b680e410
Adding debian version 2:2.7.5-2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 10:45:48 +02:00

32 lines
449 B
Bash

#!/bin/sh
set -e
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
# Hook for stopping smartcard reading software
if [ ! -x /usr/sbin/pcscd ]; then
exit 0
fi
. /scripts/functions
if PID="$(cat /run/pcscd.pid)" 2>/dev/null &&
[ "$(readlink -f "/proc/$PID/exe")" = "/usr/sbin/pcscd" ]; then
log_begin_msg "Stopping pcscd"
kill -TERM "$PID"
log_end_msg
fi