From 4f9848d6a108925a0bb446c38ec34a8aa497dec4 Mon Sep 17 00:00:00 2001 From: Pieterjan Camerlynck Date: Tue, 28 Mar 2017 11:55:47 +0200 Subject: [PATCH] package/pcsc-lite: enable systemd socket activation pcsc-lite installs systemd service files, but they are not used. Enable pcscd.socket so that systemd starts the daemon when the first client connects. Signed-off-by: Pieterjan Camerlynck Signed-off-by: Thomas Petazzoni --- package/pcsc-lite/pcsc-lite.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/pcsc-lite/pcsc-lite.mk b/package/pcsc-lite/pcsc-lite.mk index e53c004e8b..3349b6ca07 100644 --- a/package/pcsc-lite/pcsc-lite.mk +++ b/package/pcsc-lite/pcsc-lite.mk @@ -37,4 +37,10 @@ ifeq ($(PACKAGE_PCSC_LITE_EMBEDDED),y) PCSC_LITE_CONF_OPTS += --enable-embedded endif +define PCSC_LITE_INSTALL_INIT_SYSTEMD + mkdir -p $(TARGET_DIR)/etc/systemd/system/sockets.target.wants + ln -sf ../../../../usr/lib/systemd/system/pcscd.socket \ + $(TARGET_DIR)/etc/systemd/system/sockets.target.wants/pcscd.socket +endef + $(eval $(autotools-package)) -- 2.30.2