From: Wu zheng Date: Thu, 7 Nov 2013 09:10:41 +0000 (+0800) Subject: Modify the program path to match Bluez-5.X X-Git-Tag: accepted/tizen/20131114.173824~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fbluetooth-tools.git;a=commitdiff_plain;h=13bc56f00b2e5590cc4052ca72248e69b47eb6e7 Modify the program path to match Bluez-5.X Change-Id: Ib93b4d0bc98d041daab494025c4a869754bdcd99 --- diff --git a/scripts/bt-dev-end.sh b/scripts/bt-dev-end.sh index fd6c37c..29aca1a 100755 --- a/scripts/bt-dev-end.sh +++ b/scripts/bt-dev-end.sh @@ -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 diff --git a/scripts/bt-dev-start.sh b/scripts/bt-dev-start.sh index c06524a..dcd72f7 100755 --- a/scripts/bt-dev-start.sh +++ b/scripts/bt-dev-start.sh @@ -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 diff --git a/scripts/bt-stack-up.sh b/scripts/bt-stack-up.sh index 4145556..ed5c9e2 100644 --- a/scripts/bt-stack-up.sh +++ b/scripts/bt-stack-up.sh @@ -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 &