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