Code sync: merged tizen 2.4 base source code
[platform/core/connectivity/bluetooth-tools.git] / scripts / bt-edutm-dev-up.sh
old mode 100644 (file)
new mode 100755 (executable)
index 8c2f49b..a7b7c16
@@ -4,31 +4,31 @@
 # Script for turning on Bluetooth (EDUTM)
 #
 
-if /usr/sbin/hciconfig | grep hci; then
+if /usr/bin/hciconfig | /bin/grep hci; then
        /usr/etc/bluetooth/bt-stack-down.sh
-       sleep 1
+       /bin/sleep 1
 fi
 
 # Register BT Device
 /usr/etc/bluetooth/bt-dev-start.sh
 
-if !(/usr/sbin/hciconfig | grep hci); then
+if !(/usr/bin/hciconfig | /bin/grep hci); then
        echo "BT EDUTM failed. Registering BT device is failed."
        exit 1
 fi
 
 # Execute BlueZ BT stack
 echo "Run bluetoothd"
-/usr/sbin/bluetoothd
+/usr/lib/bluetooth/bluetoothd &
 /usr/bin/bt-service &
-sleep 0.1
+/bin/sleep 0.1
 
-/usr/sbin/hciconfig hci0 name TIZEN-Mobile
+/usr/bin/hciconfig hci0 name TIZEN-Mobile
 
-/usr/sbin/hciconfig hci0 piscan
+/usr/bin/hciconfig hci0 piscan
 
 if [ -e "/sys/devices/hci0/idle_timeout" ]
 then
        echo "Set idle time"
-       echo 0> /sys/devices/hci0/idle_timeout
+       echo 0 > /sys/devices/hci0/idle_timeout
 fi