blob: 4de8f486723a8f6a49baaaad0938c2413804019c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/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
|