x86: make crashdump works
[openwrt/staging/wigyori.git] / package / boot / kexec-tools / files / kdump.init
index 057b8cc..9d0d2fc 100755 (executable)
@@ -1,7 +1,9 @@
 #!/bin/sh /etc/rc.common
 
 START=41
-STOP=98
+STOP=90
+
+BOOT_IMAGE=/boot/vmlinuz
 
 EXTRA_COMMANDS="status"
 EXTRA_HELP="        status  Print crashkernel status"
@@ -43,8 +45,10 @@ run_kdump() {
        timestamp=$(date "+%Y%m%dT%H%M%S")
 
        if [ "$save_vmcore" -eq 1 ]; then
+               echo -n "Saving vmcore (this may take a while)..."
                # would like 'sparse' but busybox doesn't support it
                dd if=/proc/vmcore of="$path/vmcore-$timestamp" conv=fsync bs=1M
+               echo " done"
        fi
 
        if [ "$save_dmesg" -eq 1 ]; then