From ee6110b1d762e54dd376824e7cb47de4ec8fd26e Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 23 Dec 2023 17:28:09 +0100 Subject: [PATCH] arc: add cleanup old to make step Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index 0a174f8f..c1af0ff8 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -414,6 +414,10 @@ function make() { if [ "${PLATFORM}" = "epyc7002" ]; then KVER="${PRODUCTVER}-${KVER}" fi + if [ -d "${UNTAR_PAT_PATH}" ]; then + rm -rf "${UNTAR_PAT_PATH}" + mkdir -p "${UNTAR_PAT_PATH}" + fi # Memory: Set mem_max_mb to the amount of installed memory to bypass Limitation writeConfigKey "synoinfo.mem_max_mb" "${RAMMAX}" "${USER_CONFIG_FILE}" writeConfigKey "synoinfo.mem_min_mb" "${RAMMIN}" "${USER_CONFIG_FILE}"