summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/packages/bluez/bluez-utils/add-init-deps.patch21
-rw-r--r--meta/packages/bluez/bluez-utils/add-restart.patch21
-rw-r--r--meta/packages/bluez/bluez-utils_3.18.bb6
3 files changed, 46 insertions, 2 deletions
diff --git a/meta/packages/bluez/bluez-utils/add-init-deps.patch b/meta/packages/bluez/bluez-utils/add-init-deps.patch
new file mode 100644
index 0000000000..45bcce5aa9
--- /dev/null
+++ b/meta/packages/bluez/bluez-utils/add-init-deps.patch
@@ -0,0 +1,21 @@
1---
2 scripts/bluetooth.init | 8 ++++++++
3 1 file changed, 8 insertions(+)
4
5--- bluez-utils-3.18.orig/scripts/bluetooth.init
6+++ bluez-utils-3.18/scripts/bluetooth.init
7@@ -1,6 +1,14 @@
8 #!/bin/sh
9+### BEGIN INIT INFO
10+# Provides: bluetooth
11+# Required-Start: $local_fs $syslog $remote_fs dbus
12+# Required-Stop: $local_fs $syslog $remote_fs
13+# Default-Start: 2 3 4 5
14+# Default-Stop: 0 1 6
15+# Short-Description: Start bluetooth daemons
16+### END INIT INFO
17 #
18 # Start/stop the Bluetooth daemons
19 #
20
21 set -e
diff --git a/meta/packages/bluez/bluez-utils/add-restart.patch b/meta/packages/bluez/bluez-utils/add-restart.patch
new file mode 100644
index 0000000000..e37befff41
--- /dev/null
+++ b/meta/packages/bluez/bluez-utils/add-restart.patch
@@ -0,0 +1,21 @@
1---
2 scripts/bluetooth.init | 4 ++++
3 1 file changed, 4 insertions(+)
4
5--- bluez-utils-3.18.orig/scripts/bluetooth.init
6+++ bluez-utils-3.18/scripts/bluetooth.init
7@@ -47,10 +47,14 @@ case "$1" in
8 echo -n "Stopping $DESC:"
9 killall $DAEMON_NAME > /dev/null 2>&1 || true
10 echo -n " $DAEMON_NAME"
11 echo "."
12 ;;
13+ restart)
14+ $0 stop
15+ $0 start
16+ ;;
17 *)
18 N=/etc/init.d/$NAME
19 echo "Usage: $N {start|stop}" >&2
20 exit 1
21 ;;
diff --git a/meta/packages/bluez/bluez-utils_3.18.bb b/meta/packages/bluez/bluez-utils_3.18.bb
index 50004e3cb2..093064ad35 100644
--- a/meta/packages/bluez/bluez-utils_3.18.bb
+++ b/meta/packages/bluez/bluez-utils_3.18.bb
@@ -1,12 +1,14 @@
1require bluez-utils.inc 1require bluez-utils.inc
2 2
3DEPENDS += "glib-2.0" 3DEPENDS += "glib-2.0"
4PR = "r3" 4PR = "r4"
5 5
6# ti patch doesn't apply, people using it should rediff it and send it upstream 6# ti patch doesn't apply, people using it should rediff it and send it upstream
7#SRC_URI += "file://hciattach-ti-bts.patch;patch=1 " 7#SRC_URI += "file://hciattach-ti-bts.patch;patch=1 "
8 8
9SRC_URI += "file://allow-no-hal.patch;patch=1 " 9SRC_URI += "file://allow-no-hal.patch;patch=1 \
10 file://add-init-deps.patch;patch=1 \
11 file://add-restart.patch;patch=1"
10 12
11EXTRA_OECONF = " \ 13EXTRA_OECONF = " \
12 --enable-bccmd \ 14 --enable-bccmd \