From cb40ecd35e75cfb48d2c25d6d7d4396f72cb84d6 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 23 Aug 2015 14:02:55 +0200 Subject: [PATCH] Add wipe option for luks --- archfi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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