summaryrefslogtreecommitdiff
path: root/multitech/recipes
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2012-09-13 17:33:52 -0500
committerJesse Gilles <jgilles@multitech.com>2012-09-18 13:36:56 -0500
commit34aafef2dbe70bd2724a33ce8e68a0cb20b114b5 (patch)
treec5e0cc12327ad6f3ca685b99232dcaf730c5c1b0 /multitech/recipes
parent57e04322b91c111d691c45ed4112d0455626d461 (diff)
bluez: add bluetooth init script for mt100eocg-pcie-dk
Diffstat (limited to 'multitech/recipes')
-rw-r--r--multitech/recipes/bluez/bluez4.inc10
-rwxr-xr-xmultitech/recipes/bluez/files/bluetooth.init7
2 files changed, 16 insertions, 1 deletions
diff --git a/multitech/recipes/bluez/bluez4.inc b/multitech/recipes/bluez/bluez4.inc
index a59145b..918ef9c 100644
--- a/multitech/recipes/bluez/bluez4.inc
+++ b/multitech/recipes/bluez/bluez4.inc
@@ -5,7 +5,7 @@ PRIORITY = "optional"
LICENSE = "GPLv2/LGPLv2.1"
#DEPENDS = "gst-plugins-base alsa-lib virtual/libusb0 dbus-glib"
DEPENDS = "virtual/libusb0 dbus-glib"
-INC_PR = "r8"
+INC_PR = "r9"
FILESPATHBASE .= ":${OETREE}/openembedded/recipes/bluez"
@@ -19,6 +19,9 @@ SRC_URI = "\
file://fix-dfutool-usb-declaration-mismatch.patch \
file://bluetooth.conf \
"
+
+SRC_URI_append_mt100eocg-pcie-dk = "file://bluetooth.init"
+
S = "${WORKDIR}/bluez-${PV}"
inherit autotools update-rc.d
@@ -52,6 +55,11 @@ do_install_append() {
install -m 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/
}
+do_install_append_mt100eocg-pcie-dk() {
+ install -d ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/bluetooth.init ${D}${sysconfdir}/init.d/bluetooth
+}
+
INITSCRIPT_NAME = "bluetooth"
INITSCRIPT_PARAMS = "defaults 23 19"
diff --git a/multitech/recipes/bluez/files/bluetooth.init b/multitech/recipes/bluez/files/bluetooth.init
new file mode 100755
index 0000000..411fd6d
--- /dev/null
+++ b/multitech/recipes/bluez/files/bluetooth.init
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+echo "Enabling bluetooth..."
+mts-io-sysfs store bt-enabled 1
+sleep 1
+echo "Setting up bluetooth device..."
+hciattach /dev/bt texas