#
# Device down
-/usr/sbin/hciconfig hci0 down
+/usr/bin/hciconfig hci0 down
# Turn off Bluetooth Chip
/usr/sbin/rfkill block bluetooth
/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
# 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
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 &