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:
parent
7e19cbd4d8
commit
ffd0d524f5
@ -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)"
|
||||||
|
Loading…
Reference in New Issue
Block a user