summaryrefslogtreecommitdiff
path: root/meta/packages/bluez/bluez-utils
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/bluez/bluez-utils')
-rw-r--r--meta/packages/bluez/bluez-utils/add-init-deps.patch21
-rw-r--r--meta/packages/bluez/bluez-utils/add-restart.patch21
2 files changed, 42 insertions, 0 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 000000000..45bcce5aa
--- /dev/null
+++ b/meta/packages/bluez/bluez-utils/add-init-deps.patch
@@ -0,0 +1,21 @@
+---
+ scripts/bluetooth.init | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+--- bluez-utils-3.18.orig/scripts/bluetooth.init
++++ bluez-utils-3.18/scripts/bluetooth.init
+@@ -1,6 +1,14 @@
+ #!/bin/sh
++### BEGIN INIT INFO
++# Provides: bluetooth
++# Required-Start: $local_fs $syslog $remote_fs dbus
++# Required-Stop: $local_fs $syslog $remote_fs
++# Default-Start: 2 3 4 5
++# Default-Stop: 0 1 6
++# Short-Description: Start bluetooth daemons
++### END INIT INFO
+ #
+ # Start/stop the Bluetooth daemons
+ #
+
+ 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 000000000..e37befff4
--- /dev/null
+++ b/meta/packages/bluez/bluez-utils/add-restart.patch
@@ -0,0 +1,21 @@
+---
+ scripts/bluetooth.init | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- bluez-utils-3.18.orig/scripts/bluetooth.init
++++ bluez-utils-3.18/scripts/bluetooth.init
+@@ -47,10 +47,14 @@ case "$1" in
+ echo -n "Stopping $DESC:"
+ killall $DAEMON_NAME > /dev/null 2>&1 || true
+ echo -n " $DAEMON_NAME"
+ echo "."
+ ;;
++ restart)
++ $0 stop
++ $0 start
++ ;;
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop}" >&2
+ exit 1
+ ;;