diff options
author | MatMoul <matmoul@gmail.com> | 2015-08-22 23:15:10 +0200 |
---|---|---|
committer | MatMoul <matmoul@gmail.com> | 2015-08-22 23:15:10 +0200 |
commit | d8321059c6682474f64d1c950a196ff3c3f72575 (patch) | |
tree | 374444d239007e89bd9df6da186cafcebae4c16f | |
parent | fdf1d5ca56f76c67a0ce66e2d347735a582a7504 (diff) | |
download | hyperfi-d8321059c6682474f64d1c950a196ff3c3f72575.tar.lz hyperfi-d8321059c6682474f64d1c950a196ff3c3f72575.tar.xz hyperfi-d8321059c6682474f64d1c950a196ff3c3f72575.zip |
Add wipe option for luks
-rw-r--r-- | archfi | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -551,6 +551,10 @@ formatdevice(){ echo "" echo "$txtopenluksdevice" cryptsetup luksOpen $2 $1 + if (whiptail --backtitle "$apptitle" --title "luks" --yesno "Wipe device (recommended) ?" 0 0) then + clear + dd if=/dev/zero of=/dev/mapper/$1 + fi pressanykey formatdevice $1 /dev/mapper/$1 noluks if [ "$1" = "root" ]; then |