diff options
author | MatMoul <matmoul@gmail.com> | 2015-08-23 14:02:55 +0200 |
---|---|---|
committer | MatMoul <matmoul@gmail.com> | 2015-08-23 14:02:55 +0200 |
commit | cb40ecd35e75cfb48d2c25d6d7d4396f72cb84d6 (patch) | |
tree | 8cb5778b27cd348434aeae8784ca638e53efd73b /archfi | |
parent | fefa10d12e076d6b77682a3f505f726d68c2339d (diff) | |
download | hyperfi-cb40ecd35e75cfb48d2c25d6d7d4396f72cb84d6.tar.lz hyperfi-cb40ecd35e75cfb48d2c25d6d7d4396f72cb84d6.tar.xz hyperfi-cb40ecd35e75cfb48d2c25d6d7d4396f72cb84d6.zip |
Add wipe option for luks
Diffstat (limited to 'archfi')
-rw-r--r-- | archfi | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |