recipes-connectivity: bluez5: add dbus-org.bluez.obex.service symlink 91/18091/1
authorMatt Ranostay <matt.ranostay@konsulko.com>
Tue, 20 Nov 2018 16:21:43 +0000 (18:21 +0200)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Tue, 20 Nov 2018 16:45:49 +0000 (16:45 +0000)
To allow OBEX service to be requested by a user on demand there needs
to be a symlink /etc/systemd/user/dbus-org.bluez.obex.service to the
obex.service

Change-Id: If4b8a94790403cf7f8f2a53ce3365c5f8c9f3b2c
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
meta-agl-profile-core/recipes-connectivity/bluez5/bluez5_%.bbappend

index c5afa87..9c49ad0 100644 (file)
@@ -10,4 +10,9 @@ SRC_URI_append = "\
 
 do_install_append() {
     install -m 0644 ${WORKDIR}/bluetooth.conf ${D}${sysconfdir}/dbus-1/system.d/bluetooth.conf
+
+    if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
+        mkdir -p ${D}/etc/systemd/user
+        ln -sf ${systemd_user_unitdir}/obex.service ${D}/etc/systemd/user/dbus-org.bluez.obex.service
+    fi
 }