arc: cleanup files after dynamic loading

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-08-03 12:50:20 +02:00
parent 0f83e1b786
commit 138148ddb4

View File

@ -71,6 +71,7 @@ if [ "${ARCDYN}" == "true" ] && [ "${OFFLINE}" == "false" ] && [ ! -f "${PART1_P
unzip -o "${TMP_PATH}/main.zip" -d "${TMP_PATH}" 2>/dev/null
cp -rf "${TMP_PATH}/arc-main/files/initrd/opt/arc" "${ARC_PATH}"
rm -rf "${TMP_PATH}/arc-main"
rm -f "${TMP_PATH}/main.zip"
echo "true" >"${PART1_PATH}/dynamic"
init.sh
fi
@ -1162,6 +1163,7 @@ else
unzip -o "${TMP_PATH}/main.zip" -d "${TMP_PATH}" 2>/dev/null
cp -rf "${TMP_PATH}/arc-main/files/initrd/opt/arc" "${ARC_PATH}"
rm -rf "${TMP_PATH}/arc-main"
rm -f "${TMP_PATH}/main.zip"
echo "true" >"${PART1_PATH}/dynamic"
init.sh
else