diff --git a/crashkernel/crash-recovery.sh b/crashkernel/crash-recovery.sh index 0114b17..092dbc7 100644 --- a/crashkernel/crash-recovery.sh +++ b/crashkernel/crash-recovery.sh @@ -55,6 +55,11 @@ core_size=$(stat -c %s /proc/vmcore) mount -o remount,rw / / +if test -x /etc/local/crash-recovery.sh; then + . /etc/local/crash-recovery.sh + reboot "/etc/local/crash-recovery.sh has finished" +fi + if mount -L CRASHDUMP /mnt; then test -e /mnt/crash.vmcore && rm /mnt/crash.vmcore if (( $(free_space /mnt) - $core_size > 1024*1024*1024 )); then