tree: more fixes

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-08-03 14:02:49 +02:00
parent 8c81d06b7c
commit f4bc5be100
3 changed files with 4 additions and 2 deletions

View File

@@ -2092,7 +2092,7 @@ function rebootMenu() {
echo -e "network \"Arc - Restart Network Service\"" >>"${TMP_PATH}/opts"
echo -e "recovery \"DSM - Recovery Mode\"" >>"${TMP_PATH}/opts"
echo -e "junior \"DSM - Reinstall Mode\"" >>"${TMP_PATH}/opts"
if efibootmgr | grep -q "^Boot0000"; then
if efibootmgr | grep -q "^Boot0000" 2>/dev/null; then
echo -e "bios \"System - BIOS/UEFI\"" >>"${TMP_PATH}/opts"
fi
echo -e "poweroff \"System - Shutdown\"" >>"${TMP_PATH}/opts"

View File

@@ -1150,6 +1150,7 @@ else
C) cloneLoader; NEXT="C" ;;
Y) [ "${ARCDYN}" == "false" ] && ARCDYN='true' || ARCDYN='false'
writeConfigKey "arc.dynamic" "${ARCDYN}" "${USER_CONFIG_FILE}"
rm -f "${TMP_PATH}/dynamic" >/dev/null 2>&1 || true
dynCheck
NEXT="Y"
;;

View File

@@ -652,10 +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_PATH}"
cp -rf "${TMP_PATH}/arc-dev/files/initrd/opt/arc/"* "/opt/arc"
rm -rf "${TMP_PATH}/arc-dev"
rm -f "${TMP_PATH}/dev.zip"
echo "true" >"${TMP_PATH}/dynamic"
clear
exec init.sh
elif [ "${ARCDYN}" == "false" ] || [ "${OFFLINE}" == "true" ]; then
[ -f "${TMP_PATH}/dynamic" ] && rm -f "${TMP_PATH}/dynamic" >/dev/null 2>&1 || true