arc: fix recovery

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2023-12-03 14:15:28 +01:00
parent badcf85c7d
commit 4a47b3b03b

View File

@@ -1233,10 +1233,8 @@ function backupMenu() {
else
while true; do
dialog --backtitle "$(backtitle)" --menu "Choose an Option" 0 0 0 \
1 "Restore Config" \
2 "Restore Loader Disk" \
3 "Restore Config with Code" \
4 "Recover from DSM" \
1 "Restore Config with Code" \
2 "Recover from DSM" \
2>"${TMP_PATH}/resp"
[ $? -ne 0 ] && return 1
case "$(<"${TMP_PATH}/resp")" in
@@ -1263,7 +1261,7 @@ function backupMenu() {
else
cp -f "${BACKUPDIR}/user-config.yml" "${USER_CONFIG_FILE}"
dialog --backtitle "$(backtitle)" --title "Restore Config" --aspect 18 \
--msgbox "Version mismatch!\nIt is possible that your Config will not work!" 0 0
--msgbox "Version mismatch!\nIt is possible that your Config will not work!" 0 0
fi
else
dialog --backtitle "$(backtitle)" --title "Restore Config" --aspect 18 \