From 1b03e9c5d9e07b6af2a66f9a5ef5fd05dfcbf6c9 Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <3752022+BrainwreckedTech@users.noreply.github.com> Date: Mon, 20 Dec 2021 01:03:24 -0500 Subject: [PATCH] Add option to choose LUKS version --- mkcrypt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mkcrypt b/mkcrypt index 6dabfcb..5cad476 100755 --- a/mkcrypt +++ b/mkcrypt @@ -6,6 +6,7 @@ HSHTYP='sha512' ITTIME='5000' USERAN='random' DEVICE="${1}" +LKSTYP=0 # WE NEED ROOT PRIVILEGES @@ -42,6 +43,12 @@ if [ "${CONFRM,,}" = "y" ]; then echo "" + while [ ! "${LKSTYP}" = "1" ] && [ ! "${LKSTYP}" = "2" ]; do + echo -n "Use version 1 or 2? " + read LKSTYP + echo "" + done + echo "Setting up encryption with password..." echo ""