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

Mike Williams mike at mikebwilliams.com
Fri May 6 18:30:19 UTC 2016


Signed-off-by: Mike Williams <mike at mikebwilliams.com>
---
 package/bluez5_utils/bluez5_utils.mk | 6 ++++++
 1 file changed, 6 insertions(+)

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))
-- 
2.5.0




More information about the buildroot mailing list