wok-current rev 13668

pcsc-lite: update init script (thanks malamut)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 24 14:27:08 2012 +0100 (2012-11-24)
parents 5ef779ca99a2
children a4016f7bd89c
files pcsc-lite/stuff/init.d/pcscd
line diff
     1.1 --- a/pcsc-lite/stuff/init.d/pcscd	Sat Nov 24 11:33:48 2012 +0100
     1.2 +++ b/pcsc-lite/stuff/init.d/pcscd	Sat Nov 24 14:27:08 2012 +0100
     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