summaryrefslogtreecommitdiff
path: root/system/pcsc-lite/rc.pcscd
diff options
context:
space:
mode:
authorLukenShiro <lukenshiro@ngi.it>2010-05-11 22:26:57 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:26:57 +0200
commitf0c1b572e8c60206916a8d9f52c5c783fa08d033 (patch)
tree865d9746198bd10893c303e24629e322e21c8eed /system/pcsc-lite/rc.pcscd
parent540974b2685fc3f096c6e4f8016b3e2a22fd0415 (diff)
downloadslackbuilds-f0c1b572e8c60206916a8d9f52c5c783fa08d033.tar.gz
system/pcsc-lite: Updated for version 1.4.102
Diffstat (limited to 'system/pcsc-lite/rc.pcscd')
-rw-r--r--system/pcsc-lite/rc.pcscd18
1 files changed, 15 insertions, 3 deletions
diff --git a/system/pcsc-lite/rc.pcscd b/system/pcsc-lite/rc.pcscd
index 480414de62..613c80ae44 100644
--- a/system/pcsc-lite/rc.pcscd
+++ b/system/pcsc-lite/rc.pcscd
@@ -6,7 +6,7 @@
# before it for smooth experience with PCMCIA readers.
#
-PIDFILE=/var/run/pcscd.pid
+PIDFILE=/var/run/pcscd/pcscd.pid
PCSCD_OPTS=""
# Start
@@ -27,7 +27,7 @@ pcscd_stop() {
echo "Stopping PC/SC-lite smart card daemon..."
if [ -e "$PIDFILE" ]; then
kill $(cat $PIDFILE)
- rm -f $PIDFILE
+ rm -f $PIDFILE 1>&2 >/dev/null
fi
# Just in case:
killall pcscd 1>&2 >/dev/null
@@ -40,6 +40,15 @@ pcscd_restart() {
pcscd_start
}
+# Status
+pcscd_status() {
+ if [ -e "$PIDFILE" ]; then
+ echo "pcscd is running."
+ else
+ echo "pcscd is stopped."
+ fi
+}
+
case "$1" in
'start')
pcscd_start
@@ -50,6 +59,9 @@ case "$1" in
'restart')
pcscd_restart
;;
+'status')
+ pcscd_status
+ ;;
*)
- echo "usage $0 start|stop|restart"
+ echo "usage $0 start|stop|restart|status"
esac