Modify the device discovery status
[platform/core/connectivity/bluetooth-frwk.git] / bluetooth_log_dump.sh
1 #!/bin/sh
2
3 #--------------------------------------
4 #    bluetooth
5 #--------------------------------------
6
7 CHOWN="/bin/chown"
8
9 BLUETOOTH_DEBUG=${1}/bluetooth
10 PREV_PWD=${PWD}
11 BT_DATA_DIR=/var/lib/bluetooth
12
13 mkdir -p ${BLUETOOTH_DEBUG}
14 ${CHOWN} 551:551 ${BLUETOOTH_DEBUG}
15
16 if [ -e ${BT_DATA_DIR} ]
17 then
18         cd ${BT_DATA_DIR}
19         /bin/tar -cvzf ${BLUETOOTH_DEBUG}/bt_log.tar.gz *
20 fi
21
22 cd ${PREV_PWD}