blob: 0580e620d33a55bf17eb97c829b18e4d75634f81 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#!/bin/sh
2
3MOUNT_POINT=$(getprop ro.hawk.logs.mount_point "/sdcard/")
4LOCAL_PATH=$(getprop ro.hawk.logs.local_path "ut_logs")
5LOG_DIR=$MOUNT_POINT$LOCAL_PATH
6#For each log directory in ut_logs perform create_report.sh
7for 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
16done