Fix the file path for hciconfig / hciattach 51/43351/1 accepted/tizen/mobile/20150708.195727 accepted/tizen/wearable/20150708.195828 submit/tizen_mobile/20150708.082946 submit/tizen_wearable/20150708.082957
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 8 Jul 2015 08:28:09 +0000 (17:28 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 8 Jul 2015 08:28:09 +0000 (17:28 +0900)
Change-Id: I016be8073fd7e12dfd9630d73177d20730c94f39
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
scripts/bt-dev-end.sh
scripts/bt-dev-start.sh

index ef4731e..5fe10a9 100755 (executable)
@@ -5,7 +5,7 @@
 #
 
 # Device down
-/usr/sbin/hciconfig hci0 down
+/usr/bin/hciconfig hci0 down
 
 # OMAP4
 REVISION_NUM=`grep Revision /proc/cpuinfo | awk "{print \\$3}"`
index 42d4d3b..de9e4e4 100755 (executable)
@@ -34,9 +34,9 @@ fi
 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"
@@ -44,11 +44,11 @@ else
        $BCM_TOOL $BT_UART_DEVICE -FILE=/usr/etc/bluetooth/$BCM_FIRMWARE -BAUD=$UART_SPEED -ADDR=/opt/etc/.bd_addr -SETSCO=0,0,0,0,0,0,0,3,3,0 -LP > /dev/null 2>&1
 
        # Attaching Broadcom device
-       if (/usr/sbin/hciattach $BT_UART_DEVICE -s $UART_SPEED $BT_CHIP_TYPE $UART_SPEED flow); then
+       if (/usr/bin/hciattach $BT_UART_DEVICE -s $UART_SPEED $BT_CHIP_TYPE $UART_SPEED flow); then
                sleep 0.1
-               /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
                echo "HCIATTACH success"
        else
                echo "HCIATTACH failed"