mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
kodi.sh: never delete just created crash log
If system time was not set via NTP on RTC-less devices, current log may have the oldest time stamp.
This commit is contained in:
parent
ff33cf88fe
commit
879bc5955b
@ -154,8 +154,8 @@ if [ $(( ($RET >= 131 && $RET <= 136) || $RET == 139 )) = "1" ] ; then
|
|||||||
# Crashed with core dump
|
# Crashed with core dump
|
||||||
print_crash_report
|
print_crash_report
|
||||||
|
|
||||||
# Cleanup. Keep only youngest 10 reports
|
# Cleanup. Keep only youngest 10 reports but current in any case
|
||||||
rm -f $(ls -1t $CRASHLOG_DIR/kodi_crashlog_*.log | tail -n +11)
|
rm -f $(ls -1t $CRASHLOG_DIR/kodi_crashlog_*.log | grep -v "$FILE" | tail -n +10)
|
||||||
|
|
||||||
# Enable safe mode if a crash loop is detected
|
# Enable safe mode if a crash loop is detected
|
||||||
detect_crash_loop && activate_safe_mode
|
detect_crash_loop && activate_safe_mode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user