summaryrefslogtreecommitdiff
path: root/source/n/bluez/config/bluetooth.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/bluez/config/bluetooth.sh')
-rw-r--r--source/n/bluez/config/bluetooth.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/n/bluez/config/bluetooth.sh b/source/n/bluez/config/bluetooth.sh
new file mode 100644
index 00000000..22034551
--- /dev/null
+++ b/source/n/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
+