summaryrefslogtreecommitdiffstats
path: root/source/n/bluez/config/rc.bluetooth
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2022-01-26 20:46:44 +0000
committer Eric Hameleers <alien@slackware.com>2022-01-27 08:59:55 +0100
commit8a82997b2e8f0b7c191f233a196c4d9190c170c9 (patch)
treee895ae791a5ed0459663d3a6d7cb288720749e98 /source/n/bluez/config/rc.bluetooth
parenta733d591479391a9aaf78b2872e2afed5dc6658f (diff)
downloadcurrent-8a82997b2e8f0b7c191f233a196c4d9190c170c9.tar.gz
current-8a82997b2e8f0b7c191f233a196c4d9190c170c9.tar.xz
Wed Jan 26 20:46:44 UTC 202220220126204644
a/aaa_libraries-15.0-x86_64-17.txz: Rebuilt. Upgraded: libcap.so.2.63, libglib-2.0.so.0.7000.3, libgmodule-2.0.so.0.7000.3, libgobject-2.0.so.0.7000.3, libgthread-2.0.so.0.7000.3, libtdb.so.1.4.6. a/mkinitrd-1.4.11-x86_64-28.txz: Rebuilt. Support kernel modules compressed with xz. Thanks to baldzhang. l/glib2-2.70.3-x86_64-1.txz: Upgraded. l/libcap-2.63-x86_64-1.txz: Upgraded. n/bluez-5.63-x86_64-2.txz: Rebuilt. rc.bluetooth: use #!/bin/bash shebang. Filter commented and empty lines when parsing uart.conf. Thanks to atelszewski.
Diffstat (limited to '')
-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
}