From 61d35fb72790739d9b4f50b88e447bcfc85a2bbd Mon Sep 17 00:00:00 2001 From: Bartosz Bilas Date: Thu, 14 Nov 2019 11:59:47 +0100 Subject: [PATCH] package/rauc: add systemd service file hook Signed-off-by: Bartosz Bilas Signed-off-by: Thomas Petazzoni --- package/rauc/rauc.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/rauc/rauc.mk b/package/rauc/rauc.mk index a49a580781..f3434e9c9a 100644 --- a/package/rauc/rauc.mk +++ b/package/rauc/rauc.mk @@ -30,6 +30,12 @@ ifeq ($(BR2_PACKAGE_SYSTEMD),y) RAUC_DEPENDENCIES += systemd endif +define RAUC_INSTALL_INIT_SYSTEMD + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + ln -sf ../../../../lib/systemd/system/rauc.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/rauc.service +endef + HOST_RAUC_DEPENDENCIES = \ host-pkgconf \ host-openssl \