Browse Source

l/pcsc-lite: Fix rc script.

slackware-15.0
parent
commit
796fd6114a
  1. 2
      l/pcsc-lite/pcsc-lite.SlackBuild
  2. 8
      l/pcsc-lite/rc.pcscd

2
l/pcsc-lite/pcsc-lite.SlackBuild

@ -32,7 +32,7 @@ WGET=${WGET:-https://pcsclite.apdu.fr/files/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-pcsc-lite}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}

8
l/pcsc-lite/rc.pcscd

@ -1,9 +1,15 @@
#!/bin/sh
PIDFILE=/var/run/pcscd/pcscd.pid
PIDDIR=/var/run/pcscd
PIDFILE=$PIDDIR/pcscd.pid
case "$1" in
start)
if [ ! -d $PIDDIR ]; then
mkdir -p $PIDDIR
chown scard:scard $PIDDIR
fi
su scard -c "/usr/sbin/pcscd"
;;

Loading…
Cancel
Save