Skip to content

Commit

Permalink
[bluetooth] Fix Bluetooth init script for busybox grep.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlehtima committed Apr 7, 2019
1 parent 0e09f6e commit 2202348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparse/usr/bin/droid/droid-hcismd-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ while [ ! $i -gt $MAXTRIES ] ; do
if [ -e /sys/class/bluetooth/hci0 ] ; then
# found hci0, get/set BT MAC address
echo 0 > /sys/module/hci_smd/parameters/hcismd_set
bt_mac=$(/system/bin/hci_qcomm_init -e -p 2 -P 2 -d /dev/ttyHSL0 2>1 | grep -oP '([0-9a-f]{2}:){5}([0-9a-f]{2})')
bt_mac=$(/system/bin/hci_qcomm_init -e -p 2 -P 2 -d /dev/ttyHSL0 2>1 | grep -oE '([0-9a-f]{2}:){5}([0-9a-f]{2})')
echo "BT MAC: $bt_mac"
if [ ! -z "$bt_mac" ] ; then
echo $bt_mac > /var/lib/bluetooth/board-address
Expand Down

0 comments on commit 2202348

Please sign in to comment.