Change-Id: I39378853c5135c66492ad9235e06ecdd9b24bf1c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
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
#