arc: rewrite update menu

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-09-05 23:31:25 +02:00
parent 747b0fca36
commit 74d88856f7

View File

@ -850,18 +850,18 @@ function updateMenu() {
ARCBRANCH="$(readConfigKey "arc.branch" "${USER_CONFIG_FILE}")"
NEXT="1"
while true; do
dialog --backtitle "$(backtitle)" --cancel-label "Exit" \
dialog --backtitle "$(backtitle)" --colors --cancel-label "Exit" \
--menu "Choose an Option" 0 0 0 \
0 "Buildroot Branch: \Z1${ARCBRANCH}\Zn" \
1 "Automated Update Mode" \
2 "Full-Upgrade Loader (reflash)" \
3 "Update Loader" \
4 "Update Addons" \
5 "Update Configs" \
6 "Update LKMs" \
7 "Update Modules" \
8 "Update Patches" \
9 "Update Custom Kernel" \
0 "Buildroot Branch: ${ARCBRANCH}" \
2 "Full-Upgrade Loader \Z1(reflash)\Zn" \
3 "\Z4Advanced:\Zn Update Loader" \
4 "\Z4Advanced:\Zn Update Addons" \
5 "\Z4Advanced:\Zn Update Configs" \
6 "\Z4Advanced:\Zn Update LKMs" \
7 "\Z4Advanced:\Zn Update Modules" \
8 "\Z4Advanced:\Zn Update Patches" \
9 "\Z4Advanced:\Zn Update Custom Kernel" \
2>"${TMP_PATH}/resp"
[ $? -ne 0 ] && break
case "$(cat ${TMP_PATH}/resp)" in