blob: 0580e620d33a55bf17eb97c829b18e4d75634f81 [file] [log] [blame]
#!/bin/sh
MOUNT_POINT=$(getprop ro.hawk.logs.mount_point "/sdcard/")
LOCAL_PATH=$(getprop ro.hawk.logs.local_path "ut_logs")
LOG_DIR=$MOUNT_POINT$LOCAL_PATH
#For each log directory in ut_logs perform create_report.sh
for i in `find $LOG_DIR -type d -mindepth 1 -maxdepth 1` ;do
cd $i
if [ -e OFFLINE ] ; then
hawk_create_report.sh $i
if [ $? == -1 ]; then
echo "hawk:ftp failed" > /dev/kmsg
exit -1
fi
fi
done