summaryrefslogtreecommitdiffstats
path: root/patches/source/bluez/config/bluetooth.sh
diff options
context:
space:
mode:
Diffstat (limited to 'patches/source/bluez/config/bluetooth.sh')
-rw-r--r--patches/source/bluez/config/bluetooth.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/patches/source/bluez/config/bluetooth.sh b/patches/source/bluez/config/bluetooth.sh
new file mode 100644
index 00000000..22034551
--- /dev/null
+++ b/patches/source/bluez/config/bluetooth.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Check whether /etc/rc.d/rc.bluetooth is executable before starting
+# the bluetooth subsystem for hotplugged bluetooth devices
+[ -x /etc/rc.d/rc.bluetooth ] && exec /usr/sbin/bluetoothd --udev
+exit 0
+