diff --git a/archfi b/archfi index 04d147f..8e7f0ba 100644 --- a/archfi +++ b/archfi @@ -557,11 +557,12 @@ formatdevice(){ sel=$(whiptail --backtitle "$apptitle" --title "Wipe device" --menu "Wipe device (recommended) ?" --no-button="Ignore" 0 0 0 \ "${options[@]}" \ 3>&1 1>&2 2>&3) - clear + if [ "$?" = "0" ]; then case $sel in normal) dd if=/dev/zero of=/dev/mapper/$1 & PID=$! &>/dev/null;; fast) dd if=/dev/zero of=/dev/mapper/$1 bs=30M & PID=$! &>/dev/null;; esac + clear sleep 1 while kill -USR1 $PID &>/dev/null do