diff --git a/Full/system/etc/init.d/30_logcat b/Full/system/etc/init.d/30_logcat index 767a929..3cdc780 100755 --- a/Full/system/etc/init.d/30_logcat +++ b/Full/system/etc/init.d/30_logcat @@ -10,9 +10,6 @@ echo "Starting Automatic Cleaning at $(date +%Y%m%d-%H.%M.%S)" [[ ! -d ${LOGDIR} ]] && mkdir -p ${LOGDIR} -# remove files older than a week to prevent pollution -find ${LOGDIR} -print -mtime +8 -exec rm -f {} \; 2>/dev/null - echo "Automatic Cleaning finished at $(date +%Y%m%d-%H.%M.%S)" # Set current date in 20170607-12.07.25 format diff --git a/Full/system/etc/init.d/50_logscleaner b/Full/system/etc/init.d/50_logscleaner index fc7a8b6..78b5d85 100755 --- a/Full/system/etc/init.d/50_logscleaner +++ b/Full/system/etc/init.d/50_logscleaner @@ -35,9 +35,9 @@ for logpath in /cache /cache/recovery /data/system/dropbox; do done # NanoDroid init.d logs -if [ -d /data/adb/modules/NanoDroid/logs ]; then - find /data/adb/modules/NanoDroid/logs -mtime +8 -type f \ +for logpath in /data/adb/modules/NanoDroid/logs /data/adb/logcats; do + find ${logpath} -mtime +8 -type f \ -print -exec rm -f {} \; 2>/dev/null -fi +done echo "Automatic Cleaning finished at $(date +%Y%m%d-%H.%M.%S)"