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

index 4b553925c0fe1aff0f4e2a7ffb970f39df57c047..016eff711b2a358401246c802a3ed1b3a148b5a2 100644 (file)
@@ -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