arc: expand dynamic mode

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-08-03 14:16:55 +02:00
parent 8a9c7d44b7
commit 3d2874b2be
2 changed files with 5 additions and 7 deletions

View File

@@ -71,12 +71,8 @@ dynCheck
###############################################################################
# Mounts backtitle dynamically
function backtitle() {
if [ "${ARCDYN}" == "true" ]; then
ARC_TITLE="Dynamic-Dev"
else
if [ -n "${NEWTAG}" ] && [ "${NEWTAG}" != "${ARC_VERSION}" ]; then
ARC_TITLE="${ARC_TITLE} > ${NEWTAG}"
fi
if [ -n "${NEWTAG}" ] && [ "${NEWTAG}" != "${ARC_VERSION}" ]; then
ARC_TITLE="${ARC_TITLE} > ${NEWTAG}"
fi
if [ -z "${MODEL}" ]; then
MODEL="(Model)"

View File

@@ -652,9 +652,11 @@ function dynCheck () {
if [ "${ARCDYN}" == "true" ] && [ "${OFFLINE}" == "false" ] && [ ! -f "${TMP_PATH}/dynamic" ]; then
curl -skL "https://github.com/AuxXxilium/arc/archive/refs/heads/dev.zip" -o "${TMP_PATH}/dev.zip"
unzip -qq -o "${TMP_PATH}/dev.zip" -d "${TMP_PATH}" 2>/dev/null
cp -rf "${TMP_PATH}/arc-dev/files/initrd/opt/arc/"* "/opt/arc"
cp -rf "${TMP_PATH}/arc-dev/files/initrd/opt/arc/"* "${ARC_PATH}"
rm -rf "${TMP_PATH}/arc-dev"
rm -f "${TMP_PATH}/dev.zip"
VERSION="Dynamic-Dev"
sed 's/^ARC_VERSION=.*/ARC_VERSION="'${VERSION}'"/' -i ${ARC_PATH}/include/consts.sh
echo "true" >"${TMP_PATH}/dynamic"
clear
exec init.sh