#!/bin/sh
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
#
# Script for turning on EDUTM mode
#
-if /usr/sbin/hciconfig | grep hci; then
+if /usr/bin/hciconfig | /bin/grep hci; then
echo EDUTM already done, exit
else
echo Start EDUTM
if [ -e /usr/etc/bluetooth/TIInit_* ]
then
echo "Reset device"
- hcitool cmd 0x3 0xFD0C
+ /usr/bin/hcitool cmd 0x3 0xFD0C
fi
echo "Configure BT device"
-hcitool cmd 0x3 0x0005 0x02 0x00 0x02
+/usr/bin/hcitool cmd 0x3 0x0005 0x02 0x00 0x02
echo "Send BT edutm command"
-hcitool cmd 0x06 0x0003
+/usr/bin/hcitool cmd 0x06 0x0003
echo "BT edutm done"