]>
Commit | Line | Data |
---|---|---|
5573ec9c ER |
1 | description "PC/SC Smartcard daemon" |
2 | ||
3 | # Note! pcscd should be started after pcmcia, and shut down before it | |
4 | # for smooth experience with PCMCIA readers. | |
5 | ||
6 | # Set defaults | |
7 | env LOGLEVEL="" | |
8 | env PCSCD_OPTIONS="" | |
9 | ||
10 | respawn | |
11 | expect fork | |
12 | ||
13 | script | |
14 | [ -f /etc/sysconfig/pcscd ] && . /etc/sysconfig/pcscd | |
15 | ||
16 | local logopt | |
17 | case "$LOGLEVEL" in | |
18 | debug|info|error|critical) | |
19 | logopt=--$LOGLEVEL | |
20 | ;; | |
21 | esac | |
22 | ||
23 | exec /usr/sbin/pcscd $logopt $PCSCD_OPTIONS | |
24 | end script |