3 # Script for registering BT device
4 BT_PLATFORM_DEFAULT_HCI_NAME="Tizen"
6 # Turn-on Bluetooth Chip
8 /usr/sbin/rfkill unblock bluetooth
10 echo "Check for Bluetooth device status"
11 if (/usr/bin/hciconfig | grep hci); then
12 echo "Bluetooth device is UP"
13 /usr/bin/hciconfig hci0 up
15 echo "Bluetooth device is DOWN"
16 echo "Registering Bluetooth device"
17 /usr/bin/hciconfig hci0 up
18 /usr/bin/hciconfig hci0 name $BT_PLATFORM_DEFAULT_HCI_NAME
19 /usr/bin/hciconfig hci0 sspmode 1