#!/bin/sh SRC_FILE_MB=$1 while true do DD_PID=`pidof dd` if [ -n "$DD_PID" ]; then break fi done while true do sleep 5 if [ ! -d /proc/$DD_PID ]; then break fi kill -s USR1 $DD_PID CURRENT_SIZE=`tail -n 1 /tmp/dd_progress_file | sed "s/[^0-9].*//g"` [ -n "$CURRENT_SIZE" ] && { CURRENT_MB=$(($CURRENT_SIZE / 1048576)) echo -e "Copied $CURRENT_MB MB / $SRC_FILE_MB MB\r" } done rm -f /tmp/dd_progress_file
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
kdump-capture.service | File | 941 B | 0644 |
|
kdump-emergency.service | File | 905 B | 0644 |
|
kdump-emergency.target | File | 451 B | 0644 |
|
kdump-error-handler.service | File | 993 B | 0644 |
|
kdump-error-handler.sh | File | 145 B | 0755 |
|
kdump.sh | File | 4.65 KB | 0755 |
|
module-setup.sh | File | 25.78 KB | 0755 |
|
monitor_dd_progress | File | 482 B | 0644 |
|