From d732fa48d15c40ab4ffc17cddbb2a9a7378b8ce1 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Fri, 6 May 2016 14:30:19 -0400 Subject: [PATCH] bluez5_utils: start systemd service on boot Signed-off-by: Mike Williams Signed-off-by: Thomas Petazzoni --- 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 0a7673827a..659f05d58c 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.30.2