From 5a32daed296aa19813588438a732c50565960b26 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 4 Jun 2023 13:06:47 +0200 Subject: [PATCH] package/ssdp-responder: add /var/lib/misc for systemd builds Similar to dnsmasq, ssdp-responder saves state data across reboots in the /var/lib/misc/ directory. In the case of ssdp-responder it is the (per-device unique) UUID that is generated on first boot. Workaround only needed for systemd builds, the sysv skeleton already has the /var/lib/misc/ directory. Signed-off-by: Joachim Wiberg Signed-off-by: Thomas Petazzoni --- package/ssdp-responder/ssdp-responder.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/ssdp-responder/ssdp-responder.mk b/package/ssdp-responder/ssdp-responder.mk index ddd87bc599..bb17641a9f 100644 --- a/package/ssdp-responder/ssdp-responder.mk +++ b/package/ssdp-responder/ssdp-responder.mk @@ -25,4 +25,8 @@ define SSDP_RESPONDER_INSTALL_INIT_SYSV $(TARGET_DIR)/etc/init.d/S50ssdpd endef +define SSDP_RESPONDER_INSTALL_INIT_SYSTEMD + mkdir -p $(TARGET_DIR)/var/lib/misc/ +endef + $(eval $(autotools-package))