From: DoHyun Pyun Date: Thu, 16 Feb 2017 05:45:35 +0000 (+0900) Subject: Modify bt-stack-up.sh script for TM2 device X-Git-Tag: accepted/tizen/common/20170303.090536~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fbluetooth-tools.git;a=commitdiff_plain;h=521e3494677c7e624a31728722a35510ebd633bc Modify bt-stack-up.sh script for TM2 device Change-Id: I39378853c5135c66492ad9235e06ecdd9b24bf1c Signed-off-by: DoHyun Pyun --- diff --git a/scripts/wearable/bt-stack-up.sh b/scripts/wearable/bt-stack-up.sh index ee56a9d..040cb81 100755 --- a/scripts/wearable/bt-stack-up.sh +++ b/scripts/wearable/bt-stack-up.sh @@ -6,8 +6,26 @@ HCIDUMP_FILENAME="bt_hcidump.log" HCIDUMP_PATH="${HCIDUMP_DIR}/${HCIDUMP_FILENAME}" LOGDUMP_DIR="/opt/etc/dump.d/module.d" LOGDUMP_PATH="${LOGDUMP_DIR}/bt-hci-logdump.sh" +RFKILL=/usr/sbin/rfkill +GREP=/usr/bin/grep +HFP_HF=hfp_hf +echo "Check for bcm43012 device - TM2" +if (${RFKILL} list | ${GREP} bcm43012); then + echo "Solis TM2 device" + HFP_AG=hfp_ag +fi + +if [ $HFP_HF ] +then /usr/bin/bluetooth-hf-agent & +fi + +if [ $HFP_AG ] +then +/usr/bin/bluetooth-ag-agent & +fi + # # Script for executing Bluetooth stack #