projects
/
platform
/
core
/
connectivity
/
bluetooth-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the unused session bus environement setting
[platform/core/connectivity/bluetooth-tools.git]
/
scripts
/
bt-dev-start.sh
diff --git
a/scripts/bt-dev-start.sh
b/scripts/bt-dev-start.sh
index
ff5e6d5
..
7dcf4ee
100755
(executable)
--- 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
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
fi