| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |||||
| 3 | MOUNT_POINT=$(getprop ro.hawk.logs.mount_point "/sdcard/") | ||||
| 4 | LOCAL_PATH=$(getprop ro.hawk.logs.local_path "ut_logs") | ||||
| 5 | LOG_DIR=$MOUNT_POINT$LOCAL_PATH | ||||
| 6 | #For each log directory in ut_logs perform create_report.sh | ||||
| 7 | for i in `find $LOG_DIR -type d -mindepth 1 -maxdepth 1` ;do | ||||
| 8 | cd $i | ||||
| 9 | if [ -e OFFLINE ] ; then | ||||
| 10 | hawk_create_report.sh $i | ||||
| 11 | if [ $? == -1 ]; then | ||||
| 12 | echo "hawk:ftp failed" > /dev/kmsg | ||||
| 13 | exit -1 | ||||
| 14 | fi | ||||
| 15 | fi | ||||
| 16 | done | ||||