X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=scripts%2Fbt-dev-start.sh;h=7dcf4eeebe41db2d925e217d84192f82713aaceb;hb=645f8abf8f3fd1149e7f0004099c362a05333a7d;hp=ff5e6d59dd825d89d395755e2cf93aa082fa480d;hpb=24b434e3f4f8983a6d4f6cbe192501754fc3df3e;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-tools.git diff --git a/scripts/bt-dev-start.sh b/scripts/bt-dev-start.sh index ff5e6d5..7dcf4ee 100755 --- a/scripts/bt-dev-start.sh +++ b/scripts/bt-dev-start.sh @@ -17,5 +17,11 @@ else 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