You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NanoDroid/Full/system/etc/init.d/logcat

11 lines
262 B
Plaintext

#!/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}"