Check for BT tools in brcm startup scripts

Closes #449
This commit is contained in:
zador-blood-stained 2016-10-24 18:20:08 +03:00
parent e06743d9a4
commit fd80c3bfb6
2 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,7 @@
# Provides: brcm40183-patch
# Required-Start: $local_fs
# Required-Stop:
# X-Start-Before: bluetooth
# X-Start-Before: bluetooth
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Patch firmware for brcm40183 Bluetooth adapter
@ -18,6 +18,9 @@ then
. "${DEFAULTS}"
fi
# exit if bluetooth utils are not installed
[ -f "/bin/hciconfig" ] || exit 0
. /lib/lsb/init-functions
do_start () {

View File

@ -3,7 +3,7 @@
# Provides: brcm4330-patch
# Required-Start: $local_fs
# Required-Stop:
# X-Start-Before: bluetooth
# X-Start-Before: bluetooth
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Patch firmware for brcm4330 Bluetooth adapter
@ -20,6 +20,9 @@ fi
. /lib/lsb/init-functions
# exit if bluetooth utils are not installed
[ -f "/bin/hciconfig" ] || exit 0
do_start () {
if [ ! -z $(hciconfig | /bin/grep UART | /usr/bin/cut -d: -f1) ]