2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-09 19:10:30 +00:00
NanoDroid/Full/system/etc/init.d/logcat
Christopher Roy Bratusek 07030a90f3 improve logcat init script
2018-03-02 19:41:53 +01:00

11 lines
262 B
Bash
Executable File

#!/system/bin/sh
CURDATE=$(date +%Y%m%d-%I.%M.%S)
[[ ! -d /data/adb/logcat ]] && mkdir -p /data/adb/logcat
# remove files older than a week to prevent pollution
find /data/adb/logcat/ -mtime +8 -exec rm -f {} \;
logcat | tee -a "/data/adb/logcat/${CURDATE}"