From d92244ff771294a0262658cb9539a06a34299915 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sun, 29 Sep 2024 18:19:36 +0200 Subject: [PATCH] arc: more rewrite Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc-functions.sh | 5 +++-- files/initrd/opt/arc/arc.sh | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/files/initrd/opt/arc/arc-functions.sh b/files/initrd/opt/arc/arc-functions.sh index f0618cbc..18c2c99f 100755 --- a/files/initrd/opt/arc/arc-functions.sh +++ b/files/initrd/opt/arc/arc-functions.sh @@ -682,7 +682,7 @@ function backupMenu() { NEXT="1" while true; do dialog --backtitle "$(backtitle)" --cancel-label "Exit" --menu "Choose an Option" 0 0 0 \ - 1 "Restore Arc Config from DSM" \ + 1 "Restore and Build Arc Config from DSM" \ 2 "Restore HW Encryption Key from DSM" \ 3 "Backup HW Encryption Key to DSM" \ 2>"${TMP_PATH}/resp" @@ -739,7 +739,8 @@ function backupMenu() { # Check for compatibility compatboot if [ ${resp} -eq 1 ]; then - arcSummary + ARCMODE="automated" + arcVersion elif [ ${resp} -eq 2 ]; then dialog --clear --no-items --backtitle "$(backtitle)" return 1 diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index b25c7d09..068ab700 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -1096,8 +1096,8 @@ else echo "M \"Primary NIC: \Z4${ARCNIC}\Zn \" " >>"${TMP_PATH}/menu" echo "W \"RD Compression: \Z4${RD_COMPRESSED}\Zn \" " >>"${TMP_PATH}/menu" echo "X \"Sata DOM: \Z4${SATADOM}\Zn \" " >>"${TMP_PATH}/menu" - echo "u \"Switch LKM Version: \Z4${LKM}\Zn \" " >>"${TMP_PATH}/menu" - echo "c \"Switch IPv6 Support: \Z4${IPV6}\Zn \" " >>"${TMP_PATH}/menu" + echo "u \"LKM Version: \Z4${LKM}\Zn \" " >>"${TMP_PATH}/menu" + echo "c \"IPv6 Support: \Z4${IPV6}\Zn \" " >>"${TMP_PATH}/menu" echo "B \"Grep DSM Config from Backup \" " >>"${TMP_PATH}/menu" echo "L \"Grep Logs from dbgutils \" " >>"${TMP_PATH}/menu" echo "w \"Reset Loader to Defaults \" " >>"${TMP_PATH}/menu"