mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 00:09:53 +07:00
arc: cleanup files after dynamic loading
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
0f83e1b786
commit
138148ddb4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user