Add the default path in the script file
[platform/core/connectivity/bluetooth-tools.git] / scripts / bt-hci-logdump.sh
1 #!/bin/sh
2 PATH=/bin:/usr/bin:/sbin:/usr/sbin
3
4 #--------------------------------------
5 #    bluetooth hci
6 #--------------------------------------
7
8 BLUETOOTH_DEBUG=${1}/bluetooth
9 PREV_PWD=${PWD}
10 BT_DUMP_DIR=/opt/usr/media/Others/.bt_dump
11
12 if [ ! -e ${BT_DUMP_DIR} ]
13 then
14         exit 0
15 fi
16
17 /bin/mkdir -p ${BLUETOOTH_DEBUG}
18
19 cd ${BT_DUMP_DIR}
20 /bin/tar -cvzf ${BLUETOOTH_DEBUG}/bt_dump.tar.gz *
21
22 cd ${PREV_PWD}