From 44316e508317233b62a26ffd5e76e7e9de0756cb Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Tue, 1 Oct 2024 20:51:44 +0200 Subject: [PATCH] arc-functions: add sanity check Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc-functions.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/initrd/opt/arc/arc-functions.sh b/files/initrd/opt/arc/arc-functions.sh index 2b568e46..3931403e 100755 --- a/files/initrd/opt/arc/arc-functions.sh +++ b/files/initrd/opt/arc/arc-functions.sh @@ -739,6 +739,8 @@ function backupMenu() { writeConfigKey "modules.${ID}" "" "${USER_CONFIG_FILE}" done < <(getAllModules "${PLATFORM}" "${KVERP}") fi + CONFHASHFILE="$(sha256sum "${S_FILE}" | awk '{print $1}')" + writeConfigKey "arc.confhash" "${CONFHASHFILE}" "${USER_CONFIG_FILE}" dialog --backtitle "$(backtitle)" --title "Restore Arc Config" \ --aspect 18 --msgbox "Config restore successful!\nDownloading necessary files..." 0 0 sleep 2