2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-07 15:20:36 +00:00

logscleaner init.d script: clean-up old init.d logs, aswell

This commit is contained in:
Christopher Roy Bratusek 2019-05-06 18:02:19 +02:00
parent 7e19cbd4d8
commit ffd0d524f5

View File

@ -34,4 +34,10 @@ for logpath in /cache /cache/recovery /data/system/dropbox; do
-print -exec rm -f {} \; 2>/dev/null -print -exec rm -f {} \; 2>/dev/null
done done
# NanoDroid init.d logs
if [ -d /data/adb/modules/NanoDroid/logs ]; then
find /data/adb/modules/NanoDroid/logs -mtime +8 -type f \
-print -exec rm -f {} \; 2>/dev/null
fi
echo "Automatic Cleaning finished at $(date +%Y%m%d-%H.%M.%S)" echo "Automatic Cleaning finished at $(date +%Y%m%d-%H.%M.%S)"