Skip to content

Commit

Permalink
Leftover debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
wolveix committed Sep 12, 2024
1 parent 5480886 commit 3c91b3c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,13 @@ fi
if [[ "$VMOVERRIDE" == "true" ]]; then
printf "${MSGWARNING} VMOVERRIDE is enabled, skipping CPU model check. Satisfactory might crash!\\n"
else
# Perform CPU model check
cpu_model=$(lscpu | grep 'Model name:' | sed 's/Model name:[[:space:]]*//g')
if [[ "$cpu_model" == "Common KVM processor" || "$cpu_model" == *"QEMU"* ]]; then
printf "${MSGERROR} Your CPU model is configured as \"${cpu_model}\", which will cause Satisfactory to crash.\\nIf you have control over your hypervisor (ESXi, Proxmox, etc.), you should be able to easily change this.\\nOtherwise contact your host/administrator for assistance.\\n"
exit 1
fi
fi


# check that the cpu isn't generic, as Satisfactory will crash
cpu_model=$(lscpu | grep 'Model name:' | sed 's/Model name:[[:space:]]*//g')
if [[ "$cpu_model" == "Common KVM processor" || "$cpu_model" == *"QEMU"* ]]; then
printf "${MSGERROR} Your CPU model is configured as \"${cpu_model}\", which will cause Satisfactory to crash.\\nIf you have control over your hypervisor (ESXi, Proxmox, etc.), you should be able to easily change this.\\nOtherwise contact your host/administrator for assistance.\\n"
exit 1
fi

printf "Checking available memory: %sGB detected\\n" "$RAMAVAILABLE"
if [[ "$RAMAVAILABLE" -lt 12 ]]; then
printf "${MSGWARNING} You have less than the required 12GB minmum (%sGB detected) of available RAM to run the game server.\\nIt is likely that the server will fail to load properly.\\n" "$RAMAVAILABLE"
Expand Down

0 comments on commit 3c91b3c

Please sign in to comment.