ae9722142607cd0c51cad7d1e0dc9c6ae49d1c02
[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/sbin/hciconfig | 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         hcitool cmd 0x3 0xFD0C
18 fi
19
20 echo "Configure BT device"
21 hcitool cmd 0x3 0x0005 0x02 0x00 0x02
22
23 echo "Send BT edutm command"
24 hcitool cmd 0x06 0x0003
25
26 echo "BT edutm done"