diff mbox

[2/2] bluez5_utils: start systemd service on boot

Message ID 1462559419-20212-2-git-send-email-mike@mikebwilliams.com
State Accepted
Headers show

Commit Message

Mike Williams May 6, 2016, 6:30 p.m. UTC
Signed-off-by: Mike Williams <mike@mikebwilliams.com>
---
 package/bluez5_utils/bluez5_utils.mk | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox

Patch

diff --git a/package/bluez5_utils/bluez5_utils.mk b/package/bluez5_utils/bluez5_utils.mk
index 0a76738..659f05d 100644
--- a/package/bluez5_utils/bluez5_utils.mk
+++ b/package/bluez5_utils/bluez5_utils.mk
@@ -79,4 +79,10 @@  else
 BLUEZ5_UTILS_CONF_OPTS += --disable-systemd
 endif
 
+define BLUEZ5_UTILS_INSTALL_INIT_SYSTEMD
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/
+	ln -fs ../../../../usr/lib/systemd/system/bluetooth.service \
+		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/bluetooth.service
+endef
+
 $(eval $(autotools-package))