aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatMoul <matmoul@gmail.com>2015-11-01 18:53:01 +0100
committerMatMoul <matmoul@gmail.com>2015-11-01 18:53:01 +0100
commitb87edc6fbc511e2b4959d598b8160c84601835a4 (patch)
treec1a20d846fdeada28eb525b96bb9d0aa1b979c6d
parent938e10d32de04439948bee8637e130cca794a59f (diff)
downloadhyperfi-b87edc6fbc511e2b4959d598b8160c84601835a4.tar.lz
hyperfi-b87edc6fbc511e2b4959d598b8160c84601835a4.tar.xz
hyperfi-b87edc6fbc511e2b4959d598b8160c84601835a4.zip
Correct bug on LUKS bad confirmation
-rw-r--r--archfi8
1 files changed, 8 insertions, 0 deletions
diff --git a/archfi b/archfi
index 4a0676f..581b6ae 100644
--- a/archfi
+++ b/archfi
@@ -571,10 +571,18 @@ formatdevice(){
echo "$txtcreateluksdevice"
echo "cryptsetup luksFormat $2"
cryptsetup luksFormat $2
+ if [ ! "$?" = "0"];then
+ pressanykey
+ return 0
+ fi
echo ""
echo "$txtopenluksdevice"
echo "cryptsetup luksOpen $2 $1"
cryptsetup luksOpen $2 $1
+ if [ ! "$?" = "0"];then
+ pressanykey
+ return 0
+ fi
options=()
options+=("normal" "")
options+=("fast" "")