Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From af91c96951a11f81f5cea88a0010161592c89310 Mon Sep 17 00:00:00 2001 |
| 2 | From: "Peter A. Bigot" <pab@pabigot.com> |
| 3 | Date: Wed, 14 Nov 2018 09:19:51 -0600 |
| 4 | Subject: [PATCH] bthelper: correct path for hciconfig under Yocto |
| 5 | |
| 6 | Upstream-Status: Inapproprate [OE-specific] |
| 7 | Signed-off-by: Peter A. Bigot <pab@pabigot.com> |
| 8 | --- |
| 9 | usr/bin/bthelper | 4 ++-- |
| 10 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 11 | |
| 12 | diff --git a/usr/bin/bthelper b/usr/bin/bthelper |
| 13 | index 255fdeb..4e1a1a4 100755 |
| 14 | --- a/usr/bin/bthelper |
| 15 | +++ b/usr/bin/bthelper |
| 16 | @@ -10,7 +10,7 @@ fi |
| 17 | |
| 18 | dev="$1" |
| 19 | # Need to bring hci up before looking at MAC as it can be all zeros during init |
| 20 | -/bin/hciconfig "$dev" up |
| 21 | -/bin/hciconfig "$dev" |grep -q "BD Address: B8:27:EB:" || exit 0 |
| 22 | +/usr/bin/hciconfig "$dev" up |
| 23 | +/usr/bin/hciconfig "$dev" |grep -q "BD Address: B8:27:EB:" || exit 0 |
| 24 | /usr/bin/hcitool -i "$dev" cmd 0x3f 0x1c 0x01 0x02 0x00 0x01 0x01 > /dev/null |
| 25 | |
| 26 | -- |
| 27 | 2.17.1 |
| 28 | |