projects
/
platform
/
core
/
connectivity
/
bluetooth-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code sync: merged tizen 2.4 base source code
[platform/core/connectivity/bluetooth-tools.git]
/
scripts
/
bt-edutm-dev-up.sh
diff --git
a/scripts/bt-edutm-dev-up.sh
b/scripts/bt-edutm-dev-up.sh
old mode 100644
(file)
new mode 100755
(executable)
index
8c2f49b
..
a7b7c16
--- a/
scripts/bt-edutm-dev-up.sh
+++ b/
scripts/bt-edutm-dev-up.sh
@@
-4,31
+4,31
@@
# Script for turning on Bluetooth (EDUTM)
#
# 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
/usr/etc/bluetooth/bt-stack-down.sh
- sleep 1
+
/bin/
sleep 1
fi
# Register BT Device
/usr/etc/bluetooth/bt-dev-start.sh
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"
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 &
/usr/bin/bt-service &
-sleep 0.1
+
/bin/
sleep 0.1
-/usr/
s
bin/hciconfig hci0 name TIZEN-Mobile
+/usr/bin/hciconfig hci0 name TIZEN-Mobile
-/usr/
s
bin/hciconfig hci0 piscan
+/usr/bin/hciconfig hci0 piscan
if [ -e "/sys/devices/hci0/idle_timeout" ]
then
echo "Set idle time"
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
fi