aboutsummaryrefslogtreecommitdiffstats
path: root/archfi
diff options
context:
space:
mode:
authorMatMoul <matmoul@gmail.com>2015-08-23 14:02:55 +0200
committerMatMoul <matmoul@gmail.com>2015-08-23 14:02:55 +0200
commitcb40ecd35e75cfb48d2c25d6d7d4396f72cb84d6 (patch)
tree8cb5778b27cd348434aeae8784ca638e53efd73b /archfi
parentfefa10d12e076d6b77682a3f505f726d68c2339d (diff)
downloadhyperfi-cb40ecd35e75cfb48d2c25d6d7d4396f72cb84d6.tar.lz
hyperfi-cb40ecd35e75cfb48d2c25d6d7d4396f72cb84d6.tar.xz
hyperfi-cb40ecd35e75cfb48d2c25d6d7d4396f72cb84d6.zip
Add wipe option for luks
Diffstat (limited to 'archfi')
-rw-r--r--archfi3
1 files changed, 2 insertions, 1 deletions
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