summaryrefslogtreecommitdiffstats
path: root/source/n/bluez/config/rc.bluetooth
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/bluez/config/rc.bluetooth')
-rw-r--r--source/n/bluez/config/rc.bluetooth4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/n/bluez/config/rc.bluetooth b/source/n/bluez/config/rc.bluetooth
index b56fcd101..fb5b8d68e 100644
--- a/source/n/bluez/config/rc.bluetooth
+++ b/source/n/bluez/config/rc.bluetooth
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# /etc/rc.d/rc.bluetooth (based on BLFS script)
@@ -26,7 +26,7 @@ run_sdptool() {
start_uarts() {
[ -r /etc/bluetooth/uart.conf ] || return
- grep -v '^[[:space:]]*(#|$)' /etc/bluetooth/uart.conf | while read i; do
+ grep -v '^[[:space:]]*(#|$)' /etc/bluetooth/uart.conf | grep -v "^#" | sed -r '/^\s*$/d' | while read i; do
/usr/bin/hciattach $i > /dev/null 2>&1
done
}