Remove the unused session bus environement setting
[platform/core/connectivity/bluetooth-tools.git] / scripts / ivi / bt-stack-up.sh
1 #!/bin/sh
2 PATH=/bin:/usr/bin:/sbin:/usr/sbin
3
4 /usr/bin/bluetooth-hf-agent &
5
6 #
7 # Script for executing Bluetooth stack
8 #
9
10 # Register BT Device
11 /usr/etc/bluetooth/bt-dev-start.sh
12
13 if !(/usr/bin/hciconfig | grep hci); then
14         echo "Registering BT device is failed."
15         exit 1
16 fi
17
18 # Execute BlueZ BT stack
19 echo "Run bluetoothd"
20 /usr/libexec/bluetooth/bluetoothd -d -C &
21
22 exit 0