Debian Codegraph @

debian/initramfs/scripts/local-top/cryptopensc

raw
1 #!/bin/sh
2
3 set -e
4
5 PREREQ=""
6
7 prereqs()
8 {
9 echo "$PREREQ"
10 }
11
12 case $1 in
13 prereqs)
14 prereqs
15 exit 0
16 ;;
17 esac
18
19 # Hook for starting smartcard reading software
20
21 if [ ! -x /usr/sbin/pcscd ]; then
22 exit 0
23 fi
24
25 . /scripts/functions
26
27 # Start pcscd daemon normally:
28 # start-stop-daemon --start --quiet \
29 # --pidfile /run/pcscd.pid \
30 # --exec /usr/sbin/pcscd
31 # Alternatively, start pcscd daemon in foreground so that it's pretty colored
32 # output may be seen on the console, useful for watching error messages since
33 # pcscd uses syslog which is not available (use --error or --critical to filter
34 # out debug message clutter):
35 # /usr/sbin/pcscd --error --foreground &
36 /usr/sbin/pcscd --foreground &
37 echo $! >/run/pcscd.pid