Fix the service file overwriting issue on the common profile
[platform/core/connectivity/bluetooth-tools.git] / scripts / bt-edutm-mode-on.sh
index ae97221..077a5eb 100755 (executable)
@@ -1,10 +1,11 @@
 #!/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
@@ -14,13 +15,13 @@ fi
 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"