wok-current diff pcsc-lite/stuff/init.d/pcscd @ rev 14443
Up midori (0.5.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 26 15:15:40 2013 +0200 (2013-04-26) |
parents | e509bd507650 |
children | 7f188676b59c |
line diff
1.1 --- a/pcsc-lite/stuff/init.d/pcscd Wed Nov 21 20:44:31 2012 +0000 1.2 +++ b/pcsc-lite/stuff/init.d/pcscd Fri Apr 26 15:15:40 2013 +0200 1.3 @@ -8,7 +8,7 @@ 1.4 1.5 NAME=Pcscd 1.6 DESC="PC/SC smart card daemon" 1.7 -DAEMON=/usr/bin/pcscd 1.8 +DAEMON=/usr/sbin/pcscd 1.9 PIDFILE=/run/pcscd/pcscd.pid 1.10 1.11 case "$1" in 1.12 @@ -27,7 +27,7 @@ 1.13 fi 1.14 echo -n "Stopping $DESC: $NAME... " 1.15 kill $(cat $PIDFILE) 1.16 - rm $PIDFILE 1.17 + [ -e $PIDFILE ] && rm -f $PIDFILE 1.18 status ;; 1.19 restart) 1.20 $0 stop