]>
Commit | Line | Data |
---|---|---|
7a7d4f39 JR |
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 | . /scripts/functions | |
20 | ||
21 | # Hook for starting smartcard reading software | |
22 | ||
23 | if [ ! -e /sbin/pcscd ]; then | |
24 | exit 0 | |
25 | fi | |
26 | ||
27 | # Start pcscd daemon nomrally: | |
28 | # start-stop-daemon --start --quiet \ | |
29 | # --pidfile /var/run/pcscd.pid \ | |
30 | # --exec /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 | # /sbin/pcscd --error --foreground & | |
36 | /sbin/pcscd --foreground & |