Modify the program path to match Bluez-5.X 84/11884/2
authorWu zheng <wu.zheng@intel.com>
Thu, 7 Nov 2013 09:10:41 +0000 (17:10 +0800)
committerWu zheng <wu.zheng@intel.com>
Thu, 7 Nov 2013 09:10:41 +0000 (17:10 +0800)
Change-Id: Ib93b4d0bc98d041daab494025c4a869754bdcd99

scripts/bt-dev-end.sh
scripts/bt-dev-start.sh
scripts/bt-stack-up.sh

index fd6c37c..29aca1a 100755 (executable)
@@ -5,7 +5,7 @@
 #
 
 # Device down
-/usr/sbin/hciconfig hci0 down
+/usr/bin/hciconfig hci0 down
 
 # Turn off Bluetooth Chip
 /usr/sbin/rfkill block bluetooth
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
index 4145556..ed5c9e2 100644 (file)
@@ -7,7 +7,7 @@
 # Register BT Device
 /usr/etc/bluetooth/bt-dev-start.sh
 
-if !(/usr/sbin/hciconfig | grep hci); then
+if !(/usr/bin/hciconfig | grep hci); then
        echo "Registering BT device is failed."
        exit 1
 fi
@@ -23,7 +23,7 @@ if [ -d /sys/fs/cgroup/systemd ]; then
 else
    # Under systemd, bluetoothd is dbus activated. sysvinit requires it to be
    # launched explicitly
-   /usr/sbin/bluetoothd -d
+   /lib/bluetooth/bluetoothd -d
 fi
 
 /usr/bin/bt-service &