From 9bf51b9f1bd362dfce3fb6976aa2ce520487a433 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Fri, 12 Nov 2021 23:16:53 +0100 Subject: [PATCH] Fix "socket /run/pcscd/pcscd.comm immediately removed upon start" d/pcscd.postinst: restart pcscd on install (Closes: #995814) --- debian/changelog | 7 +++++++ debian/pcscd.postinst | 31 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 debian/pcscd.postinst diff --git a/debian/changelog b/debian/changelog index 38428b7..17bbd59 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +pcsc-lite (1.9.4-2) UNRELEASED; urgency=medium + + * Fix "socket /run/pcscd/pcscd.comm immediately removed upon start" + d/pcscd.postinst: restart pcscd on install (Closes: #995814) + + -- Ludovic Rousseau Fri, 12 Nov 2021 23:16:05 +0100 + pcsc-lite (1.9.4-1) unstable; urgency=medium * d/upstream/metadata: add DEP12/UMEGAYA file diff --git a/debian/pcscd.postinst b/debian/pcscd.postinst new file mode 100644 index 0000000..d9f39b6 --- /dev/null +++ b/debian/pcscd.postinst @@ -0,0 +1,31 @@ +#! /bin/sh +# postinst script for libccid +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + configure|reconfigure) + # restart pcscd (PCSC daemon) + invoke-rc.d pcscd restart + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + +