aboutsummaryrefslogtreecommitdiff
path: root/package/ofono/ofono.mk
diff options
context:
space:
mode:
authorGravatar Mike Williams <mike@mikebwilliams.com>2015-04-21 13:50:37 -0400
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-04-22 22:55:53 +0200
commita510faf846413729968b130c77d822eaa924b758 (patch)
tree0d14e9fe9463fdd8f3a6af74ed5eedda70e1b545 /package/ofono/ofono.mk
parent38ca8839656146979721c63ffe70151df976fc83 (diff)
downloadbuildroot-a510faf846413729968b130c77d822eaa924b758.tar.gz
buildroot-a510faf846413729968b130c77d822eaa924b758.tar.bz2
ofono: enable systemd service by default
Signed-off-by: Mike Williams <mike@mikebwilliams.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/ofono/ofono.mk')
-rw-r--r--package/ofono/ofono.mk6
1 files changed, 6 insertions, 0 deletions
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