From ffd0d524f5a3ceb43f04889b107197f16b99175b Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Mon, 6 May 2019 18:02:19 +0200 Subject: [PATCH] logscleaner init.d script: clean-up old init.d logs, aswell --- Full/system/etc/init.d/logscleaner | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Full/system/etc/init.d/logscleaner b/Full/system/etc/init.d/logscleaner index f7ef4a9..487afe7 100755 --- a/Full/system/etc/init.d/logscleaner +++ b/Full/system/etc/init.d/logscleaner @@ -34,4 +34,10 @@ for logpath in /cache /cache/recovery /data/system/dropbox; do -print -exec rm -f {} \; 2>/dev/null 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)"