Commit 802a8af4 authored by Bernhard Landauer's avatar Bernhard Landauer
Browse files

loop luks_menu

parent 9bcb0ad7
...@@ -455,24 +455,27 @@ make_swap() { ...@@ -455,24 +455,27 @@ make_swap() {
} }
luks_menu() { luks_menu() {
LUKS_OPT="" declare -i loopmenu=1
while ((loopmenu)); do
DIALOG " $_PrepLUKS " --menu "\n$_LuksMenuBody$_LuksMenuBody2$_LuksMenuBody3\n " 0 0 4 \ LUKS_OPT=""
"$_LuksOpen" "cryptsetup open --type luks" \ DIALOG " $_PrepLUKS " --menu "\n$_LuksMenuBody$_LuksMenuBody2$_LuksMenuBody3\n " 0 0 4 \
"$_LuksEncrypt" "cryptsetup -q luksFormat" \ "$_LuksOpen" "cryptsetup open --type luks" \
"$_LuksEncryptAdv" "cryptsetup -q -s -c luksFormat" \ "$_LuksEncrypt" "cryptsetup -q luksFormat" \
"$_Back" "-" 2>${ANSWER} "$_LuksEncryptAdv" "cryptsetup -q -s -c luksFormat" \
"$_Back" "-" 2>${ANSWER}
case $(cat ${ANSWER}) in case $(cat ${ANSWER}) in
"$_LuksOpen") luks_open "$_LuksOpen") luks_open
;; ;;
"$_LuksEncrypt") luks_setup && luks_default && luks_show "$_LuksEncrypt") luks_setup && luks_default && luks_show
;; ;;
"$_LuksEncryptAdv") luks_setup && luks_key_define && luks_show "$_LuksEncryptAdv") luks_setup && luks_key_define && luks_show
;; ;;
*) return 0 *) loopmenu=0
;; return 0
esac ;;
esac
done
} }
luks_open() { luks_open() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment