ofono: enable systemd service by default
authorMike Williams <mike@mikebwilliams.com>
Tue, 21 Apr 2015 17:50:37 +0000 (13:50 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 22 Apr 2015 20:55:53 +0000 (22:55 +0200)
Signed-off-by: Mike Williams <mike@mikebwilliams.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/ofono/ofono.mk

index 98e2fbceb7843d87e069e0e5261d5eb78b0826a3..f1a63e2beca8083127a4032669ca28098bcef430 100644 (file)
@@ -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