From 204910213958ee4d11bf701c725f14f1c54ebec4 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sun, 21 Jul 2024 11:40:18 +0200 Subject: [PATCH] menu: simplify Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc.sh | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index 4532cd53..b90f4364 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -877,19 +877,15 @@ else [ "${BUILDDONE}" == "true" ] && NEXT="3" || NEXT="1" while true; do echo "= \"\Z4========== Main ==========\Zn \" " >"${TMP_PATH}/menu" - if [ "${ARCPATCH}" == "true" ] && [ -z "ARC_KEY" ]; then - echo "0 \"Decrypt Arc Patch \" " >>"${TMP_PATH}/menu" - else - if [ -z "${ARC_KEY}" ]; then - echo "0 \"Decrypt Arc Patch \" " >>"${TMP_PATH}/menu" - fi - echo "1 \"Choose Model \" " >>"${TMP_PATH}/menu" - if [ "${CONFDONE}" == "true" ]; then - echo "2 \"Build Loader \" " >>"${TMP_PATH}/menu" - fi - if [ "${BUILDDONE}" == "true" ]; then - echo "3 \"Boot Loader \" " >>"${TMP_PATH}/menu" - fi + if [ -z "${ARC_KEY}" ]; then + echo "0 \"Decrypt Arc Patch \" " >>"${TMP_PATH}/menu" + fi + echo "1 \"Choose Model \" " >>"${TMP_PATH}/menu" + if [ "${CONFDONE}" == "true" ]; then + echo "2 \"Build Loader \" " >>"${TMP_PATH}/menu" + fi + if [ "${BUILDDONE}" == "true" ]; then + echo "3 \"Boot Loader \" " >>"${TMP_PATH}/menu" fi echo "= \"\Z4========== Info ==========\Zn \" " >>"${TMP_PATH}/menu" echo "a \"Sysinfo \" " >>"${TMP_PATH}/menu"