From 2c2286e651aa948c69f0bb2386328b11e540a3f5 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sun, 17 Nov 2024 16:42:46 +0100 Subject: [PATCH] arc: don't show online functions if loader is offline Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc-functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/initrd/opt/arc/arc-functions.sh b/files/initrd/opt/arc/arc-functions.sh index 824d45a7..3649faad 100755 --- a/files/initrd/opt/arc/arc-functions.sh +++ b/files/initrd/opt/arc/arc-functions.sh @@ -693,8 +693,9 @@ function sequentialIOMenu() { function backupMenu() { NEXT="1" USERID="$(readConfigKey "arc.userid" "${USER_CONFIG_FILE}")" + ARCOFFLINE="$(readConfigKey "arc.offline" "${USER_CONFIG_FILE}")" while true; do - if [ -n "${USERID}" ]; then + if [ -n "${USERID}" ] && [ "${ARCOFFLINE}" != "true" ]; then dialog --backtitle "$(backtitle)" --title "Backup" --cancel-label "Exit" --menu "Choose an Option" 0 0 0 \ 1 "Restore Arc Config from DSM" \ 2 "Restore HW Encryption Key from DSM" \