]> code.ossystems Code Review - openembedded-core.git/commitdiff
bluez5: fixed path to bluetoothd in sysvinit script
authorChristian Ege <k4230r6@gmail.com>
Wed, 11 May 2016 19:18:48 +0000 (21:18 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 May 2016 09:20:21 +0000 (10:20 +0100)
Within the sysvinit script the path to bluetoothd is wrong. Because of this
the init scripts silently terminates without any message

Signed-off-by: Christian Ege <k4230r6@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-connectivity/bluez5/bluez5.inc
meta/recipes-connectivity/bluez5/bluez5/init

index 9063629b9b6d5345acaac816f6c4848f0fd7fc07..b3cd8ed5ca510ec230ad66238588f82602d36c3c 100644 (file)
@@ -61,6 +61,10 @@ do_install_append() {
            install -m 0644 ${S}/profiles/input/input.conf ${D}/${sysconfdir}/bluetooth/
        fi
 
+  if [ -f ${D}/${sysconfdir}/init.d/bluetooth ]; then
+    sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}/${sysconfdir}/init.d/bluetooth
+  fi
+
        # Install desired tools that upstream leaves in build area
         for f in ${NOINST_TOOLS} ; do
            install -m 755 ${B}/$f ${D}/${bindir}
index 1606a5c6630e00d8cba115e7c70d4ff960754c65..489e9b9eba33bdc749e35fa01884444c7511ddc1 100644 (file)
@@ -3,7 +3,7 @@
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 DESC=bluetooth
 
-DAEMON=/usr/lib/bluez5/bluetooth/bluetoothd
+DAEMON=@LIBEXECDIR@/bluetooth/bluetoothd
 
 # If you want to be ignore error of "org.freedesktop.hostname1",
 # please enable NOPLUGIN_OPTION.