tizen beta release
[adaptation/devices/bluetooth-firmware-bcm.git] / scripts / bt-stack-up.sh
1 #!/bin/sh
2
3 #
4 # Script for executing Bluetooth stack
5 #
6
7 # Register BT Device
8 /usr/etc/bluetooth/bt-dev-start.sh
9
10 if !(/usr/sbin/hciconfig | grep hci); then
11         echo "Registering BT device is failed."
12         exit 1
13 fi
14
15 # Execute BlueZ BT stack
16 echo "Run bluetoothd"
17 /usr/sbin/bluetoothd -d
18 /usr/lib/obex/obexd -d --noplugin=syncevolution,pcsuite --symlinks -r /opt/share/bt-ftp
19 /usr/bin/bluetooth-share &
20 sleep 2
21
22 exit 0
23
24 # Check result
25 #if (dbus-send --system --print-reply --dest=org.bluez / org.bluez.Manager.DefaultAdapter | grep hci); then
26 #       exit 0
27 #else
28 #       echo "Running BT stack is failed."
29 #       exit 1
30 #fi
31