Add wipe option for luks

This commit is contained in:
MatMoul 2015-08-23 14:02:55 +02:00
parent fefa10d12e
commit cb40ecd35e

3
archfi
View file

@ -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