Modify the program path to match Bluez-5.X
[platform/core/connectivity/bluetooth-tools.git] / scripts / bt-dev-start.sh
index c06524a..dcd72f7 100755 (executable)
@@ -8,13 +8,13 @@ BT_PLATFORM_DEFAULT_HCI_NAME="Tizen"
 /usr/sbin/rfkill unblock bluetooth
 
 echo "Check for Bluetooth device status"
-if (/usr/sbin/hciconfig | grep hci); then
+if (/usr/bin/hciconfig | grep hci); then
        echo "Bluetooth device is UP"
-       /usr/sbin/hciconfig hci0 up
+       /usr/bin/hciconfig hci0 up
 else
        echo "Bluetooth device is DOWN"
        echo "Registering Bluetooth device"
-       /usr/sbin/hciconfig hci0 up
-       /usr/sbin/hciconfig hci0 name $BT_PLATFORM_DEFAULT_HCI_NAME
-       /usr/sbin/hciconfig hci0 sspmode 1
+       /usr/bin/hciconfig hci0 up
+       /usr/bin/hciconfig hci0 name $BT_PLATFORM_DEFAULT_HCI_NAME
+       /usr/bin/hciconfig hci0 sspmode 1
 fi