Code sync: merged tizen 2.4 base source code
[platform/core/connectivity/bluetooth-tools.git] / scripts / bt-edutm-mode-on.sh
1 #!/bin/sh
2
3 #
4 # Script for turning on EDUTM mode
5 #
6
7 if /usr/bin/hciconfig | /bin/grep hci; then
8         echo EDUTM already done, exit
9 else
10         echo Start EDUTM
11         /usr/etc/bluetooth/bt-edutm-dev-up.sh
12 fi
13
14 if [ -e /usr/etc/bluetooth/TIInit_* ]
15 then
16         echo "Reset device"
17         /usr/bin/hcitool cmd 0x3 0xFD0C
18 fi
19
20 echo "Configure BT device"
21 /usr/bin/hcitool cmd 0x3 0x0005 0x02 0x00 0x02
22
23 echo "Send BT edutm command"
24 /usr/bin/hcitool cmd 0x06 0x0003
25
26 echo "BT edutm done"