aboutsummaryrefslogtreecommitdiff
path: root/package/connman/connman.mk
diff options
context:
space:
mode:
authorGravatar Mike Williams <mike@mikebwilliams.com>2015-04-21 13:50:38 -0400
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-04-22 22:56:04 +0200
commit4aad18380255f7b8b4442323fa294d2a2107175d (patch)
tree51e0d90bdd63bf20ea22b6adb0f9cf1e80c66152 /package/connman/connman.mk
parenta510faf846413729968b130c77d822eaa924b758 (diff)
downloadbuildroot-4aad18380255f7b8b4442323fa294d2a2107175d.tar.gz
buildroot-4aad18380255f7b8b4442323fa294d2a2107175d.tar.bz2
connman: 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/connman/connman.mk')
-rw-r--r--package/connman/connman.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/connman/connman.mk b/package/connman/connman.mk
index 4b553925c0..016eff711b 100644
--- a/package/connman/connman.mk
+++ b/package/connman/connman.mk
@@ -31,6 +31,11 @@ define CONNMAN_INSTALL_INIT_SYSV
$(INSTALL) -m 0755 -D package/connman/S45connman $(TARGET_DIR)/etc/init.d/S45connman
endef
+define CONNMAN_INSTALL_INIT_SYSTEMD
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+ ln -fs ../../../../usr/lib/systemd/system/connman.service \
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/connman.service
+endef
ifeq ($(BR2_PACKAGE_CONNMAN_CLIENT),y)
CONNMAN_CONF_OPTS += --enable-client