From a510faf846413729968b130c77d822eaa924b758 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Tue, 21 Apr 2015 13:50:37 -0400 Subject: [PATCH] ofono: enable systemd service by default Signed-off-by: Mike Williams Signed-off-by: Thomas Petazzoni --- package/ofono/ofono.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/ofono/ofono.mk b/package/ofono/ofono.mk index 98e2fbceb7..f1a63e2bec 100644 --- a/package/ofono/ofono.mk +++ b/package/ofono/ofono.mk @@ -26,6 +26,12 @@ define OFONO_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D package/ofono/S46ofono $(TARGET_DIR)/etc/init.d/S46ofono endef +define OFONO_INSTALL_INIT_SYSTEMD + mkdir -p $(TARGET_DIR)/etc/systemd/systemd/multi-user.target.wants + ln -fs ../../../../usr/lib/systemd/system/ofono.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants +endef + ifeq ($(BR2_PACKAGE_HAS_UDEV),y) OFONO_CONF_OPTS += --enable-udev OFONO_DEPENDENCIES += udev -- 2.30.2