Change-Id: I1463e130da878ac99376b661014809fd59bd27b9
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
echo "Registering Bluetooth device"
/usr/bin/hciconfig hci0 up
/usr/bin/hciconfig hci0 name $BT_PLATFORM_DEFAULT_HCI_NAME
- /usr/bin/hciconfig hci0 sspmode 1
+ if [ -e "/usr/lib/bt-plugin-headed.so" ]; then
+ echo "Bluetooth headed device"
+ /usr/bin/hciconfig hci0 sspmode 1
+ else
+ echo "Bluetooth headless device"
+ /usr/bin/hciconfig hci0 sspmode 0
+ fi
fi