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

loop luks_menu

parent 9bcb0ad7
......@@ -455,8 +455,9 @@ make_swap() {
}
luks_menu() {
declare -i loopmenu=1
while ((loopmenu)); do
LUKS_OPT=""
DIALOG " $_PrepLUKS " --menu "\n$_LuksMenuBody$_LuksMenuBody2$_LuksMenuBody3\n " 0 0 4 \
"$_LuksOpen" "cryptsetup open --type luks" \
"$_LuksEncrypt" "cryptsetup -q luksFormat" \
......@@ -470,9 +471,11 @@ luks_menu() {
;;
"$_LuksEncryptAdv") luks_setup && luks_key_define && luks_show
;;
*) return 0
*) loopmenu=0
return 0
;;
esac
done
}
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